module ArgumentSpecification::DSL

Public Instance Methods

argument(object, &block) click to toggle source

Get an argument object

Arguments:

object: (Object)
block: (Block)

Example:

>> test = :test
>> argument(test) { should_not be_nil }
=> nil
# File lib/argspec/dsl.rb, line 14
def argument(object, &block)
  ArgumentSpecification::Argument.new(object, &block)

  nil
            end