Sha256: eaeb899ff0e9d6b2ba799790be0cdc1c199162a57ee4a61993a45465689c4232

Contents?: true

Size: 329 Bytes

Versions: 6

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

module Snowpack
  module Console
    module Plugins
      class RelationReaders < Module
        def initialize(ctx)
          ctx.rom.relations.each do |name, relation|
            define_method(name) do
              relation
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
snowpack-1.0.0.alpha7 lib/snowpack/console/plugins/relation_readers.rb
snowpack-1.0.0.alpha6 lib/snowpack/console/plugins/relation_readers.rb
snowpack-1.0.0.alpha5 lib/snowpack/console/plugins/relation_readers.rb
snowpack-1.0.0.alpha4 lib/snowpack/console/plugins/relation_readers.rb
snowpack-1.0.0.alpha3 lib/snowpack/console/plugins/relation_readers.rb
snowpack-1.0.0.alpha2 lib/snowpack/console/plugins/relation_readers.rb