Method: Yoga::Node#initialize
- Defined in:
- lib/yoga/node.rb
#initialize(attributes) ⇒ Node
Initialize the node with the given attributes. The :kind and
:location attributes are required.
24 25 26 27 |
# File 'lib/yoga/node.rb', line 24 def initialize(attributes) self.attributes = attributes freeze end |