Sha256: 856c85d212480a69a57abf0062be66e88bbf0e3984f5063c0182cefde3bdf33f
Contents?: true
Size: 310 Bytes
Versions: 4
Compression:
Stored size: 310 Bytes
Contents
# frozen_string_literal: true module Motoko module Resolvers class Fact < BaseResolver attr_accessor :fact def initialize(name, options) @fact = options.delete('fact') || name super end def resolve_for(node) node.fact(fact) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
motoko-1.2.1 | lib/motoko/resolvers/fact.rb |
motoko-1.2.0 | lib/motoko/resolvers/fact.rb |
motoko-1.1.0 | lib/motoko/resolvers/fact.rb |
motoko-1.0.0 | lib/motoko/resolvers/fact.rb |