Module: Spout::Helpers::Iterators

Included in:
DictionaryTest
Defined in:
lib/spout/helpers/iterators.rb

Class Method Summary collapse

Class Method Details

.included(c) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/spout/helpers/iterators.rb', line 8

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