Module: Rukawa::State::BaseExt
- Defined in:
- lib/rukawa/state.rb
Instance Method Summary collapse
Instance Method Details
#colored ⇒ Object
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_name ⇒ Object
7 8 9 |
# File 'lib/rukawa/state.rb', line 7 def state_name @state_name ||= to_s.gsub(/Rukawa::State::/, "").downcase end |
#success? ⇒ Boolean
19 20 21 |
# File 'lib/rukawa/state.rb', line 19 def success? false end |