Module: Stretchy::Scopes::ClassMethods
- Defined in:
- lib/stretchy/scopes.rb
Instance Method Summary collapse
- #search(options = {}) ⇒ Object
- #stretch(name, block) ⇒ Object
- #stretchify(options = {}) ⇒ Object
- #stretchy_options ⇒ Object
- #stretchy_scope ⇒ Object
Instance Method Details
#search(options = {}) ⇒ Object
13 14 15 |
# File 'lib/stretchy/scopes.rb', line 13 def search( = {}) stretchy_scope.new .merge() end |
#stretch(name, block) ⇒ Object
25 26 27 |
# File 'lib/stretchy/scopes.rb', line 25 def stretch(name, block) stretchy_scope.send(:define_method, name, &block) end |
#stretchify(options = {}) ⇒ Object
9 10 11 |
# File 'lib/stretchy/scopes.rb', line 9 def stretchify( = {}) @stretchy_options = end |
#stretchy_options ⇒ Object
17 18 19 |
# File 'lib/stretchy/scopes.rb', line 17 def Hash(@stretchy_options) end |