Class: Dogfood::DSL::Evaluator::CatProxy
- Inherits:
-
Object
- Object
- Dogfood::DSL::Evaluator::CatProxy
- Defined in:
- lib/dogfood/dsl/evaluator.rb
Overview
Scoped to one category of a categorized pool.
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(cat_view, rng) ⇒ CatProxy
constructor
A new instance of CatProxy.
- #random ⇒ Object
Constructor Details
#initialize(cat_view, rng) ⇒ CatProxy
Returns a new instance of CatProxy.
291 292 293 294 |
# File 'lib/dogfood/dsl/evaluator.rb', line 291 def initialize(cat_view, rng) @cat_view = cat_view @rng = rng end |
Instance Method Details
#all ⇒ Object
300 301 302 |
# File 'lib/dogfood/dsl/evaluator.rb', line 300 def all @cat_view.all end |
#random ⇒ Object
296 297 298 |
# File 'lib/dogfood/dsl/evaluator.rb', line 296 def random @cat_view.random(@rng) end |