Class: RD::Include

Inherits:
BlockElement show all
Includes:
TerminalElement
Defined in:
lib/rd/block-element.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#parent

Instance Method Summary collapse

Methods included from TerminalElement

#children, #each_element

Methods inherited from Element

#inspect, #tree

Constructor Details

#initialize(filename) ⇒ Include

Returns a new instance of Include.



59
60
61
62
# File 'lib/rd/block-element.rb', line 59

def initialize(filename)
  super()
  @filename = filename
end

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



57
58
59
# File 'lib/rd/block-element.rb', line 57

def filename
  @filename
end

Instance Method Details

#accept(visitor) ⇒ Object



64
65
66
# File 'lib/rd/block-element.rb', line 64

def accept(visitor)
  visitor.visit_Include(self)
end