Method: FilterTable::Factory#add_accessor

Defined in:
lib/utils/filter.rb

#add_accessor(method_name) ⇒ Object



182
183
184
185
186
187
188
# File 'lib/utils/filter.rb', line 182

def add_accessor(method_name)
  if method_name.nil?
    throw RuntimeError, "Called filter.add_delegator for resource #{@resource} with method name nil!"
  end
  @accessors.push(method_name)
  self
end