Module: Resourced::Finders::ClassMethods

Defined in:
lib/resourced/finders.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_finders_objObject (readonly)

Returns the value of attribute _finders_obj.



66
67
68
# File 'lib/resourced/finders.rb', line 66

def _finders_obj
  @_finders_obj
end

Instance Method Details

#default_finder(&block) ⇒ Object



68
69
70
71
# File 'lib/resourced/finders.rb', line 68

def default_finder(&block)
  finders
  @_default_finders << block if block_given?
end

#finders(&block) ⇒ Object



62
63
64
65
# File 'lib/resourced/finders.rb', line 62

def finders(&block)
  @_finders_obj ||= Finders.new
  @_finders_obj.instance_eval(&block) if block_given?
end