Class: Advanced::Builders::Scope
- Inherits:
-
Module
- Object
- Module
- Advanced::Builders::Scope
- Defined in:
- lib/advanced/builders.rb
Instance Method Summary collapse
-
#initialize(search, name) ⇒ Scope
constructor
A new instance of Scope.
Constructor Details
#initialize(search, name) ⇒ Scope
Returns a new instance of Scope.
4 5 6 7 8 |
# File 'lib/advanced/builders.rb', line 4 def initialize(search, name) define_method name do |params = {}| search.new(all).call(params) end end |