Module: Riot::Gear::AnythingContextHelper

Defined in:
lib/riot/gear/context/anything.rb

Instance Method Summary collapse

Instance Method Details

#anything(description = "", &definition) ⇒ Riot::Gear::AnythingRunnable

Parameters:

  • description (String) (defaults to: "")

    A description of what the block is for

  • &definition (lambda)

    The block that will be executed …

Returns:



18
19
20
# File 'lib/riot/gear/context/anything.rb', line 18

def anything(description="", &definition)
  @assertions << Riot::Gear::AnythingRunnable.new(description, &definition)
end