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