Class: Beckett::Node::Br
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#<<, #initialize, #inspect, #to_s
Constructor Details
This class inherits a constructor from Beckett::Node::Base
Instance Method Details
#to_h ⇒ Object
3 4 5 6 7 8 |
# File 'lib/beckett/node/br.rb', line 3 def to_h {}.tap do |element| element[:node_name] = node_name element[:node_type] = node_type end end |