module Law::Statutes::Laws

Public Instance Methods

enforced_by(law, action) click to toggle source
# File lib/law/statutes/laws.rb, line 19
def enforced_by(law, action)
  laws[law] << action
end
inherited(base) click to toggle source
Calls superclass method
# File lib/law/statutes/laws.rb, line 14
def inherited(base)
  base.laws = Hash.new { |hash, key| hash[key] = [] }
  super
end