Module: ArgumentSpecification::DSL

Defined in:
lib/argspec/dsl.rb,
lib/argspec/dsl/matchers.rb

Defined Under Namespace

Modules: Matchers

Instance Method Summary collapse

Instance Method Details

#argument(object, &block) ⇒ Object

Get an argument object

Arguments:

object: (Object)
block: (Block)

Example:

>> test = :test
>> argument(test) { should_not be_nil }
=> nil


14
15
16
17
18
# File 'lib/argspec/dsl.rb', line 14

def argument(object, &block)
    ArgumentSpecification::Argument.new(object, &block)

    nil
end