Module: Rukawa::State::Error

Extended by:
BaseExt
Defined in:
lib/rukawa/state.rb

Class Method Summary collapse

Methods included from BaseExt

colored, merge, state_name, success?

Class Method Details

.colorObject



85
86
87
# File 'lib/rukawa/state.rb', line 85

def self.color
  :red
end

.error?Boolean

Returns:

  • (Boolean)


97
98
99
# File 'lib/rukawa/state.rb', line 97

def self.error?
  true
end

.merge(other) ⇒ Object



89
90
91
92
93
94
95
# File 'lib/rukawa/state.rb', line 89

def self.merge(other)
  if other == Running
    other
  else
    self
  end
end