Class: MessagePack::IDL::AST::Include
- Inherits:
-
Object
- Object
- MessagePack::IDL::AST::Include
- Defined in:
- lib/msgpack/idl/ast.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Include
constructor
A new instance of Include.
- #text ⇒ Object
Constructor Details
#initialize(path) ⇒ Include
Returns a new instance of Include.
44 45 46 |
# File 'lib/msgpack/idl/ast.rb', line 44 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
47 48 49 |
# File 'lib/msgpack/idl/ast.rb', line 47 def path @path end |
Instance Method Details
#text ⇒ Object
49 50 51 |
# File 'lib/msgpack/idl/ast.rb', line 49 def text "include #{@path}" end |