# File lib/safemode/blankslate.rb, line 24 def allow(*names) @allowed_methods = allowed_methods + names.map{|name| name.to_s} @allowed_methods.uniq! end
# File lib/safemode/blankslate.rb, line 29 def allowed?(name) allowed_methods.include? name.to_s end
# File lib/safemode/blankslate.rb, line 20 def allowed_methods @allowed_methods ||= [] end
# File lib/safemode/blankslate.rb, line 12 def inherited(subclass) subclass.init_allowed_methods(@allowed_methods) end
Generated with the Darkfish Rdoc Generator 2.