Class: MessagePack::IDL::IR::IntValue
- Defined in:
- lib/msgpack/idl/ir.rb
Instance Attribute Summary collapse
-
#int ⇒ Object
readonly
Returns the value of attribute int.
Instance Method Summary collapse
- #==(o) ⇒ Object
-
#initialize(int) ⇒ IntValue
constructor
A new instance of IntValue.
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
#int ⇒ Object (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 |