Class: MessagePack::IDL::AST::ConstLiteral
- Defined in:
- lib/msgpack/idl/ast.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ ConstLiteral
constructor
A new instance of ConstLiteral.
- #text ⇒ Object
Constructor Details
#initialize(name) ⇒ ConstLiteral
Returns a new instance of ConstLiteral.
303 304 305 |
# File 'lib/msgpack/idl/ast.rb', line 303 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
306 307 308 |
# File 'lib/msgpack/idl/ast.rb', line 306 def name @name end |
Instance Method Details
#text ⇒ Object
308 309 310 |
# File 'lib/msgpack/idl/ast.rb', line 308 def text "#{@name}" end |