Class: Turnip::StepDefinition::Match

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



3
4
5
# File 'lib/turnip/step_definition.rb', line 3

def block
  @block
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



3
4
5
# File 'lib/turnip/step_definition.rb', line 3

def params
  @params
end

#step_definitionObject

Returns the value of attribute step_definition

Returns:

  • (Object)

    the current value of step_definition



3
4
5
# File 'lib/turnip/step_definition.rb', line 3

def step_definition
  @step_definition
end

Instance Method Details

#called_fromObject



6
# File 'lib/turnip/step_definition.rb', line 6

def called_from; step_definition.called_from; end

#expressionObject



4
# File 'lib/turnip/step_definition.rb', line 4

def expression; step_definition.expression; end

#method_nameObject



5
# File 'lib/turnip/step_definition.rb', line 5

def method_name; step_definition.method_name; end

#traceObject



8
9
10
# File 'lib/turnip/step_definition.rb', line 8

def trace
  %{  - "#{expression}" (#{called_from})}
end