Module: ConceptQL::Behaviors::Preppable
- Defined in:
- lib/conceptql/behaviors/preppable.rb
Instance Attribute Summary collapse
-
#prep_proc ⇒ Object
Returns the value of attribute prep_proc.
Instance Method Summary collapse
Instance Attribute Details
#prep_proc ⇒ Object
Returns the value of attribute prep_proc.
4 5 6 |
# File 'lib/conceptql/behaviors/preppable.rb', line 4 def prep_proc @prep_proc end |
Instance Method Details
#all(*args) ⇒ Object
9 10 11 12 |
# File 'lib/conceptql/behaviors/preppable.rb', line 9 def all(*args) prep super end |
#count(*args) ⇒ Object
14 15 16 17 |
# File 'lib/conceptql/behaviors/preppable.rb', line 14 def count(*args) prep super end |
#prep ⇒ Object
5 6 7 |
# File 'lib/conceptql/behaviors/preppable.rb', line 5 def prep prep_proc.call if prep_proc end |