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.11.0 lib/spout/helpers/iterators.rb
spout-0.11.0.rc lib/spout/helpers/iterators.rb
spout-0.11.0.beta3 lib/spout/helpers/iterators.rb
spout-0.11.0.beta2 lib/spout/helpers/iterators.rb
spout-0.11.0.beta1 lib/spout/helpers/iterators.rb
spout-0.10.2 lib/spout/helpers/iterators.rb
spout-0.10.1 lib/spout/helpers/iterators.rb
spout-0.10.0 lib/spout/helpers/iterators.rb
spout-0.10.0.rc3 lib/spout/helpers/iterators.rb
spout-0.10.0.rc2 lib/spout/helpers/iterators.rb
spout-0.10.0.rc lib/spout/helpers/iterators.rb
spout-0.10.0.beta10 lib/spout/helpers/iterators.rb
spout-0.10.0.beta9 lib/spout/helpers/iterators.rb
spout-0.10.0.beta8 lib/spout/helpers/iterators.rb
spout-0.10.0.beta7 lib/spout/helpers/iterators.rb
spout-0.10.0.beta6 lib/spout/helpers/iterators.rb
spout-0.10.0.beta4 lib/spout/helpers/iterators.rb
spout-0.10.0.beta3 lib/spout/helpers/iterators.rb
spout-0.10.0.beta2 lib/spout/helpers/iterators.rb
spout-0.10.0.beta1 lib/spout/helpers/iterators.rb