Class: Quarry::Stub::Setter

Inherits:
Object show all
Defined in:
lib/quarry/stub.rb

Instance Method Summary collapse

Constructor Details

#initialize(table, interface) ⇒ Setter

Returns a new instance of Setter.



31
32
33
34
# File 'lib/quarry/stub.rb', line 31

def initialize(table, interface)
  @table     = table
  @interface = interface
end

Instance Method Details

#==(result) ⇒ Object



36
37
38
# File 'lib/quarry/stub.rb', line 36

def ==(result)
  @table[@interface] = result
end