Class: Expire::Commands::RuleNames
- Inherits:
-
Expire::Command
- Object
- Expire::Command
- Expire::Commands::RuleNames
- Defined in:
- lib/expire/commands/rule_names.rb
Overview
Print the names of all rules
Instance Method Summary collapse
- #execute(input: $stdin, output: $stdout) ⇒ Object
-
#initialize(options) ⇒ RuleNames
constructor
A new instance of RuleNames.
Methods inherited from Expire::Command
#command, #cursor, #editor, #exec_exist?, #generator, #pager, #platform, #prompt, #screen, #which
Constructor Details
#initialize(options) ⇒ RuleNames
Returns a new instance of RuleNames.
9 10 11 |
# File 'lib/expire/commands/rule_names.rb', line 9 def initialize() @options = end |
Instance Method Details
#execute(input: $stdin, output: $stdout) ⇒ Object
13 14 15 16 17 |
# File 'lib/expire/commands/rule_names.rb', line 13 def execute(input: $stdin, output: $stdout) Expire.rule_names.each do |rule_name| output.puts rule_name end end |