Class: Quarry::Mock::Setter
Instance Method Summary collapse
- #==(result) ⇒ Object
-
#initialize(table, interface) ⇒ Setter
constructor
A new instance of Setter.
Constructor Details
#initialize(table, interface) ⇒ Setter
Returns a new instance of Setter.
34 35 36 37 |
# File 'lib/quarry/mock.rb', line 34 def initialize(table, interface) @table = table @interface = interface end |
Instance Method Details
#==(result) ⇒ Object
39 40 41 |
# File 'lib/quarry/mock.rb', line 39 def ==(result) @table[@interface] = result end |