lib/cantango/permit_store/loader/permits.rb
def load
      permits_hash.each do |name, permit_rules|
        permit_parser(name, permit_rules).parse do |permit|
          permits[name] = permit
        end
      end
      permits
    end
# loads all the permits of a certain type from a Hash
# each Hash for a permit is parsed using a Permit Parser
# the resulting permits are stored in a Hash called permits, keyed by name of permit
loads all the permits of a certain type from a Hash
each Hash for a permit is parsed using a Permit Parser
the resulting permits are stored in a Hash called permits, keyed by name of permit
loads all the permits of a certain type from a Hash each Hash for a permit is parsed using a Permit Parser the resulting permits are stored in a Hash called permits keyed by name of permit
def load
      permits_hash.each do |name, permit_rules|
        permit_parser(name, permit_rules).parse do |permit|
          permits[name] = permit
        end
      end
      permits
    end
def load permits_hash . each do | name , permit_rules | permit_parser ( name , permit_rules ) . parse do | permit | permits [ name ] = permit end end permits end
loads all the permits of a certain type from a Hash
each Hash for a permit is parsed using a Permit Parser
the resulting permits are stored in a Hash called permits, keyed by name of permit
loads all the permits of a certain type from a Hash each Hash for a permit is parsed using a Permit Parser the resulting permits are stored in a Hash called permits keyed by name of permit