Sha256: b64a103a42ef4dfdb8f3ac0d6d18806a1543d94174934d2fe7cd4871a5ce4fb6

Contents?: true

Size: 410 Bytes

Versions: 3

Compression:

Stored size: 410 Bytes

Contents

module Hari
  class Node < Entity
    module Queries
      class Relation
        module Runnable

          def result
            result = call(true)

            case result_type(true)
            when :nodes
              result.map &Hari::Node.method(:from_source)
            else
              result
            end
          end

          alias :to_a :result

        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hari-0.0.5 lib/hari/node/queries/relation/runnable.rb
hari-0.0.4 lib/hari/node/queries/relation/runnable.rb
hari-0.0.3 lib/hari/node/queries/relation/runnable.rb