Class: ArelHash::NodeFactory
- Inherits:
-
Object
- Object
- ArelHash::NodeFactory
- Defined in:
- lib/arel_hash/node_factory.rb
Instance Method Summary collapse
- #create_node(hash) ⇒ Object
-
#initialize(table) ⇒ NodeFactory
constructor
A new instance of NodeFactory.
Constructor Details
#initialize(table) ⇒ NodeFactory
4 5 6 |
# File 'lib/arel_hash/node_factory.rb', line 4 def initialize(table) @table = table end |
Instance Method Details
#create_node(hash) ⇒ Object
9 10 11 12 |
# File 'lib/arel_hash/node_factory.rb', line 9 def create_node(hash) operator, value = ArelHash.singleton_tuple!(hash) do_create_node(operator, value) end |