Class: Gemwarrior::Entity
- Inherits:
-
Object
- Object
- Gemwarrior::Entity
- Defined in:
- lib/gemwarrior/entities/entity.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/gemwarrior/entities/entity.rb', line 6 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/gemwarrior/entities/entity.rb', line 6 def name @name end |
Instance Method Details
#status ⇒ Object
9 10 11 12 |
# File 'lib/gemwarrior/entities/entity.rb', line 9 def status status_text = name.ljust(26).upcase.colorize(:green) status_text << "#{description}\n".colorize(:white) end |