Module: Rukawa::State::BaseExt

Included in:
Aborted, Bypassed, Error, Finished, Running, Skipped, Waiting
Defined in:
lib/rukawa/state.rb

Instance Method Summary collapse

Instance Method Details

#coloredObject



11
12
13
# File 'lib/rukawa/state.rb', line 11

def colored
  Paint[state_name.to_s, color]
end

#merge(other) ⇒ Object



15
16
17
# File 'lib/rukawa/state.rb', line 15

def merge(other)
  other
end

#state_nameObject



7
8
9
# File 'lib/rukawa/state.rb', line 7

def state_name
  @state_name ||= to_s.gsub(/Rukawa::State::/, "").downcase
end

#success?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/rukawa/state.rb', line 19

def success?
  false
end