Class: TPhases::Modes::Helpers::TransactionalViolationsHelper::Phase
- Inherits:
-
Object
- Object
- TPhases::Modes::Helpers::TransactionalViolationsHelper::Phase
- 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
- #ignored? ⇒ Boolean
-
#initialize(opts = { ignore: false }) ⇒ Phase
constructor
A new instance of Phase.
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
95 96 97 |
# File 'lib/tphases/modes/helpers/transactional_violations_helper.rb', line 95 def ignored? @ignore end |