Class: BitBar::Item
Defined Under Namespace
Classes: Options
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Item
constructor
A new instance of Item.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
Instance Method Details
#to_s ⇒ Object
21 22 23 24 |
# File 'lib/bitbar/item.rb', line 21 def to_s prefix = ("--" * @indent_level) + @title.to_s [@opts.any? ? [prefix, @opts].join("|") : prefix, *@output.map(&:to_s)].join("\r\n") end |