Class: MessagePack::IDL::IR::IntValue

Inherits:
Value
  • Object
show all
Defined in:
lib/msgpack/idl/ir.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(int) ⇒ IntValue

Returns a new instance of IntValue.



229
230
231
# File 'lib/msgpack/idl/ir.rb', line 229

def initialize(int)
	@int = int
end

Instance Attribute Details

#intObject (readonly)

Returns the value of attribute int.



232
233
234
# File 'lib/msgpack/idl/ir.rb', line 232

def int
  @int
end

Instance Method Details

#==(o) ⇒ Object



234
235
236
# File 'lib/msgpack/idl/ir.rb', line 234

def ==(o)
	o.class == IntValue && @int == o.int
end