Class: HyperSpec::Have

Inherits:
Struct
  • Object
show all
Defined in:
lib/hyperspec.rb

Direct Known Subclasses

RespondsWith

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *arguments, &block) ⇒ Object



251
252
253
# File 'lib/hyperspec.rb', line 251

def method_missing(method_name, *arguments, &block)
  proxy.send(method_name).must_equal(*arguments)
end

Instance Attribute Details

#proxyObject

Returns the value of attribute proxy

Returns:

  • (Object)

    the current value of proxy



250
251
252
# File 'lib/hyperspec.rb', line 250

def proxy
  @proxy
end