Module: PivotalTracker::Displayable::Main
- Included in:
- Console
- Defined in:
- lib/pivotal-tracker-console/displayable/main.rb
Class Method Summary collapse
Instance Method Summary collapse
- #display_error(message) ⇒ Object
- #display_header ⇒ Object
- #display_text(text, new_line = :no) ⇒ Object
- #skip_one_line ⇒ Object
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'lib/pivotal-tracker-console/displayable/main.rb', line 4 def self.included(base) base.send :extend, self end |
Instance Method Details
#display_error(message) ⇒ Object
18 19 20 |
# File 'lib/pivotal-tracker-console/displayable/main.rb', line 18 def display_error() display RED, "# Error => #{}" end |
#display_header ⇒ Object
8 9 10 |
# File 'lib/pivotal-tracker-console/displayable/main.rb', line 8 def display_header display YELLOW, "\n:: Pivotal Tracker Console ::\n" end |
#display_text(text, new_line = :no) ⇒ Object
12 13 14 15 16 |
# File 'lib/pivotal-tracker-console/displayable/main.rb', line 12 def display_text(text, new_line = :no) display text puts "" if new_line == :new_line end |
#skip_one_line ⇒ Object
22 23 24 |
# File 'lib/pivotal-tracker-console/displayable/main.rb', line 22 def skip_one_line puts "" end |