Class: Emb::MultiProxy::PairCollector
- Inherits:
-
Object
- Object
- Emb::MultiProxy::PairCollector
- Defined in:
- lib/emb/multi.rb
Instance Method Summary collapse
- #[](text) ⇒ Object
-
#initialize(pairs, model) ⇒ PairCollector
constructor
A new instance of PairCollector.
Constructor Details
#initialize(pairs, model) ⇒ PairCollector
Returns a new instance of PairCollector.
20 21 22 23 |
# File 'lib/emb/multi.rb', line 20 def initialize(pairs, model) @pairs = pairs @model = model end |
Instance Method Details
#[](text) ⇒ Object
25 26 27 28 |
# File 'lib/emb/multi.rb', line 25 def [](text) @pairs << { model: @model, text: text } end |