# File lib/tarantool/util.rb, line 113 def +(oth) case oth when Numeric to_i + oth when String @data + oth when AutoType @data + oth.data end end
# File lib/tarantool/util.rb, line 102 def <=>(oth) case oth when Numeric to_i <=> oth when String @data <=> oth when AutoType @data <=> oth.data end end
# File lib/tarantool/util.rb, line 90 def ==(oth) case oth when Numeric to_i == oth when String @data == oth when AutoType @data == oth.data end end
# File lib/tarantool/util.rb, line 131 def bytesize; @data.bytesize end
# File lib/tarantool/util.rb, line 75 def coerce(oth) case oth when Numeric [oth, to_i] when String [oth, @data] end end
# File lib/tarantool/util.rb, line 86 def inspect "<#{self.class.name} data=#{@data.inspect}>" end
# File lib/tarantool/util.rb, line 61 def to_int case @data.bytesize when 8 ::BinUtils.get_int64_le(@data) when 4 ::BinUtils.get_int32_le(@data) when 2 ::BinUtils.get_int16_le(@data) else raise ValueError, "Bad field size #{field_size} for integer field ##{i}" end end
Generated with the Darkfish Rdoc Generator 2.