Class: Hydrangea::SingleNode
- Inherits:
-
Object
- Object
- Hydrangea::SingleNode
- Extended by:
- Forwardable
- Defined in:
- lib/hydrangea/single_node.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(transform, node) ⇒ SingleNode
constructor
A new instance of SingleNode.
- #pass ⇒ Object
Constructor Details
#initialize(transform, node) ⇒ SingleNode
Returns a new instance of SingleNode.
11 12 13 |
# File 'lib/hydrangea/single_node.rb', line 11 def initialize(transform, node) @transform, @node = transform, node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
8 9 10 |
# File 'lib/hydrangea/single_node.rb', line 8 def node @node end |
Instance Method Details
#pass ⇒ Object
21 22 23 |
# File 'lib/hydrangea/single_node.rb', line 21 def pass @transform.pass(node: node) end |