Class: MessagePack::IDL::AST::IntLiteral
- Defined in:
- lib/msgpack/idl/ast.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ IntLiteral
constructor
A new instance of IntLiteral.
- #text ⇒ Object
Constructor Details
#initialize(value) ⇒ IntLiteral
Returns a new instance of IntLiteral.
326 327 328 |
# File 'lib/msgpack/idl/ast.rb', line 326 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
329 330 331 |
# File 'lib/msgpack/idl/ast.rb', line 329 def value @value end |
Instance Method Details
#text ⇒ Object
331 332 333 |
# File 'lib/msgpack/idl/ast.rb', line 331 def text "#{@value}" end |