Class: RD::Include
- Inherits:
-
BlockElement
- Object
- Element
- BlockElement
- RD::Include
- Includes:
- TerminalElement
- Defined in:
- lib/rd/block-element.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
Attributes inherited from Element
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(filename) ⇒ Include
constructor
A new instance of Include.
Methods included from TerminalElement
Methods inherited from Element
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
#filename ⇒ Object
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 |