Class: I18nliner::Commands::GenericCommand
- Inherits:
-
Object
- Object
- I18nliner::Commands::GenericCommand
- Includes:
- BasicFormatter
- Defined in:
- lib/i18nliner/commands/generic_command.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ GenericCommand
constructor
A new instance of GenericCommand.
- #success? ⇒ Boolean
Methods included from BasicFormatter
Constructor Details
#initialize(options) ⇒ GenericCommand
Returns a new instance of GenericCommand.
9 10 11 12 13 |
# File 'lib/i18nliner/commands/generic_command.rb', line 9 def initialize() @options = @start = Time.now extend ColorFormatter if $stdout.tty? end |
Class Method Details
.run(options) ⇒ Object
19 20 21 22 23 |
# File 'lib/i18nliner/commands/generic_command.rb', line 19 def self.run() command = new() command.run command end |
Instance Method Details
#success? ⇒ Boolean
15 16 17 |
# File 'lib/i18nliner/commands/generic_command.rb', line 15 def success? true end |