Class: RspecStarter::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec_starter/legacy/steps/step.rb

Overview

Abstract super class for a step.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(runner) ⇒ Step

Returns a new instance of Step.



6
7
8
9
# File 'lib/rspec_starter/legacy/steps/step.rb', line 6

def initialize(runner)
  @runner = runner
  @relevant_options = []
end

Instance Attribute Details

#relevant_optionsObject (readonly)

Returns the value of attribute relevant_options.



4
5
6
# File 'lib/rspec_starter/legacy/steps/step.rb', line 4

def relevant_options
  @relevant_options
end

Instance Method Details

#should_skip?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/rspec_starter/legacy/steps/step.rb', line 11

def should_skip?
  !should_execute?
end