Sha256: f74ee6d1968fbd201b3aa9e15678f7c7fd9a055fe69dc516e5295a79c608e66d

Contents?: true

Size: 621 Bytes

Versions: 7

Compression:

Stored size: 621 Bytes

Contents

# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

Version Path
spout-0.12.1 lib/spout/helpers/iterators.rb
spout-0.12.0 lib/spout/helpers/iterators.rb
spout-0.12.0.rc2 lib/spout/helpers/iterators.rb
spout-0.12.0.rc lib/spout/helpers/iterators.rb
spout-0.12.0.beta2 lib/spout/helpers/iterators.rb
spout-0.12.0.beta1 lib/spout/helpers/iterators.rb
spout-0.11.1 lib/spout/helpers/iterators.rb