Class: BoxCli::Displayer
- Inherits:
-
Object
- Object
- BoxCli::Displayer
- Defined in:
- lib/box_cli/displayer.rb
Instance Method Summary collapse
- #display(s) ⇒ Object
-
#initialize(f = STDOUT) ⇒ Displayer
constructor
A new instance of Displayer.
Constructor Details
#initialize(f = STDOUT) ⇒ Displayer
Returns a new instance of Displayer.
3 4 5 |
# File 'lib/box_cli/displayer.rb', line 3 def initialize(f = STDOUT) @f = f end |
Instance Method Details
#display(s) ⇒ Object
6 7 8 |
# File 'lib/box_cli/displayer.rb', line 6 def display(s) STDOUT.puts s end |