Module: Findit::Single
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/findit/single.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #call ⇒ Object (also: #load)
- #find ⇒ Object
Instance Method Details
#call ⇒ Object Also known as: load
56 57 58 59 60 |
# File 'lib/findit/single.rb', line 56 def call return @data if defined?(@data) res = run_callbacks(:find) { find } @data ||= res end |
#find ⇒ Object
52 53 |
# File 'lib/findit/single.rb', line 52 def find end |