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.
23 24 25 26 |
# File 'lib/emb/multi.rb', line 23 def initialize(pairs, model) @pairs = pairs @model = model end |
Instance Method Details
#[](text) ⇒ Object
28 29 30 |
# File 'lib/emb/multi.rb', line 28 def [](text) @pairs << { model: @model, text: text } end |