Class: Rapid::Template::Node::Base
- Inherits:
-
Object
- Object
- Rapid::Template::Node::Base
show all
- Defined in:
- lib/rapid/template/node/base.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
9
10
11
|
# File 'lib/rapid/template/node/base.rb', line 9
def initialize
end
|
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
7
8
9
|
# File 'lib/rapid/template/node/base.rb', line 7
def parent
@parent
end
|
Instance Method Details
#content ⇒ Object
29
30
31
|
# File 'lib/rapid/template/node/base.rb', line 29
def content
end
|
#next_node ⇒ Object
21
22
23
|
# File 'lib/rapid/template/node/base.rb', line 21
def next_node
parent.next_to self if parent
end
|
#next_to(child) ⇒ Object
17
18
19
|
# File 'lib/rapid/template/node/base.rb', line 17
def next_to child
end
|
#pull(result) ⇒ Object
13
14
15
|
# File 'lib/rapid/template/node/base.rb', line 13
def pull result
raise NotImplementedError.new("pull not implemented for #{self.class}")
end
|
#static? ⇒ Boolean
25
26
27
|
# File 'lib/rapid/template/node/base.rb', line 25
def static?
is_a? Static
end
|