module Jimson::Handler

Public Instance Methods

jimson_default_methods() click to toggle source
# File lib/jimson/handler.rb, line 4
def jimson_default_methods
  self.instance_methods.map(&:to_s) - Object.methods.map(&:to_s)
end
jimson_exclude(*methods) click to toggle source
# File lib/jimson/handler.rb, line 13
def jimson_exclude(*methods)
  @jimson_excluded_methods ||= []
  @jimson_excluded_methods += methods.map(&:to_s)
end
jimson_expose(*methods) click to toggle source
# File lib/jimson/handler.rb, line 8
def jimson_expose(*methods)
  @jimson_exposed_methods ||= []
  @jimson_exposed_methods += methods.map(&:to_s)
end
jimson_exposed_methods() click to toggle source
# File lib/jimson/handler.rb, line 18
def jimson_exposed_methods
  @jimson_exposed_methods ||= []
  @jimson_excluded_methods ||= []
  (jimson_default_methods - @jimson_excluded_methods + @jimson_exposed_methods).sort
end