Sha256: 0609be5e9a4f88cf0e87ea1755199492cd1652930ccb46bc3b7057a0e4043708

Contents?: true

Size: 590 Bytes

Versions: 32

Compression:

Stored size: 590 Bytes

Contents

require 'spout/models/dictionary'

module Spout
  module Helpers
    module Iterators

      def self.included(c)
        class << c; attr_accessor :dictionary, :variables, :domains, :forms; end
        c.instance_variable_set(:@dictionary, Spout::Models::Dictionary.new(Dir.pwd).load_all!)
        c.instance_variable_set(:@variables, c.instance_variable_get(:@dictionary).variables)
        c.instance_variable_set(:@domains, c.instance_variable_get(:@dictionary).domains)
        c.instance_variable_set(:@forms, c.instance_variable_get(:@dictionary).forms)
      end

    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
spout-0.9.1 lib/spout/helpers/iterators.rb
spout-0.9.0 lib/spout/helpers/iterators.rb
spout-0.9.0.rc lib/spout/helpers/iterators.rb
spout-0.9.0.beta2 lib/spout/helpers/iterators.rb
spout-0.9.0.beta1 lib/spout/helpers/iterators.rb
spout-0.8.0 lib/spout/helpers/iterators.rb
spout-0.8.0.rc5 lib/spout/helpers/iterators.rb
spout-0.8.0.rc4 lib/spout/helpers/iterators.rb
spout-0.8.0.rc3 lib/spout/helpers/iterators.rb
spout-0.8.0.rc2 lib/spout/helpers/iterators.rb
spout-0.8.0.rc lib/spout/helpers/iterators.rb
spout-0.8.0.beta15 lib/spout/helpers/iterators.rb