Class: TPhases::Modes::Helpers::TransactionalViolationsHelper::Phase

Inherits:
Object
  • Object
show all
Defined in:
lib/tphases/modes/helpers/transactional_violations_helper.rb

Overview

simple class to represent a phase on the stack of phases. Used to determine which phase is active

Instance Method Summary collapse

Constructor Details

#initialize(opts = { ignore: false }) ⇒ Phase

Returns a new instance of Phase.



91
92
93
# File 'lib/tphases/modes/helpers/transactional_violations_helper.rb', line 91

def initialize(opts={ ignore: false })
  @ignore = opts[:ignore]
end

Instance Method Details

#ignored?Boolean

Returns:

  • (Boolean)


95
96
97
# File 'lib/tphases/modes/helpers/transactional_violations_helper.rb', line 95

def ignored?
  @ignore
end