Module: Hari::Node::Queries::Relation::Runnable
- Included in:
- Hari::Node::Queries::Relation
- Defined in:
- lib/hari/node/queries/relation/runnable.rb
Instance Method Summary collapse
- #result ⇒ Object (also: #to_a)
Instance Method Details
#result ⇒ Object Also known as: to_a
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/hari/node/queries/relation/runnable.rb', line 7 def result result = call(true) case result_type(true) when :nodes result.map &Hari::Node.method(:from_source) else result end end |