# File lib/inherited_resources/dsl.rb, line 11 def self.included(base) ACTIONS.each do |action| base.class_eval "def self.\#{action}!(options={}, &block)\ndefine_method :__\#{action}, &block\nclass_eval <<-ACTION\ndef \#{action}\nsuper(\\\#{options.inspect}, &method(:__\#{action}))\nend\nACTION\nend\n" end end