module Otis::Hooks::ClassExtension
Public Instance Methods
filter(meth, options = {})
click to toggle source
Filter the response of a method with another method
# File lib/otis/hooks.rb, line 12 def filter(meth, options = {}) meth = meth.to_s class_eval %( def filter_for_#{meth} "#{options[:with]}" end ) end