Class: MessagePack::IDL::AST::Include

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (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

#textObject



49
50
51
# File 'lib/msgpack/idl/ast.rb', line 49

def text
	"include #{@path}"
end