Class: Gossip::StdoutCrony
- Inherits:
-
Crony
- Object
- Crony
- Gossip::StdoutCrony
show all
- Defined in:
- lib/gossip/cronies/stdout.rb
Instance Attribute Summary
Attributes inherited from Crony
#is_bff_by_default, #user_choices
Instance Method Summary
collapse
Methods inherited from Crony
#add_bff_choice, #add_configuration_choices, #checked, #df, #initialize, #is_bff?, #is_bff_by_default?, #postprocess_user_choices
Constructor Details
This class inherits a constructor from Gossip::Crony
Instance Method Details
#command_line_description ⇒ Object
13
14
15
16
17
|
# File 'lib/gossip/cronies/stdout.rb', line 13
def command_line_description
["-s", "--standard-output",
"Control display to terminal (standard output).",
"Defaults to #{is_bff_by_default?}."]
end
|
#hear(scandal, details) ⇒ Object
19
20
21
22
|
# File 'lib/gossip/cronies/stdout.rb', line 19
def hear(scandal, details)
all = [scandal, details].join($/)
puts all.indent_by(2)
end
|
#name ⇒ Object
10
|
# File 'lib/gossip/cronies/stdout.rb', line 10
def name; "terminal"; end
|
#symbol ⇒ Object
11
|
# File 'lib/gossip/cronies/stdout.rb', line 11
def symbol; :standard_output; end
|