Class: Dogfood::DSL::Evaluator::CatProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/dogfood/dsl/evaluator.rb

Overview

Scoped to one category of a categorized pool.

Instance Method Summary collapse

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

#allObject



300
301
302
# File 'lib/dogfood/dsl/evaluator.rb', line 300

def all
  @cat_view.all
end

#randomObject



296
297
298
# File 'lib/dogfood/dsl/evaluator.rb', line 296

def random
  @cat_view.random(@rng)
end