Class: Expire::Commands::RuleOptionNames
- Inherits:
-
Expire::Command
- Object
- Expire::Command
- Expire::Commands::RuleOptionNames
- Defined in:
- lib/expire/commands/rule_option_names.rb
Overview
Print the option names of all rules
Instance Method Summary collapse
- #execute(input: $stdin, output: $stdout) ⇒ Object
-
#initialize(options) ⇒ RuleOptionNames
constructor
A new instance of RuleOptionNames.
Methods inherited from Expire::Command
#command, #cursor, #editor, #exec_exist?, #generator, #pager, #platform, #prompt, #screen, #which
Constructor Details
#initialize(options) ⇒ RuleOptionNames
9 10 11 |
# File 'lib/expire/commands/rule_option_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_option_names.rb', line 13 def execute(input: $stdin, output: $stdout) Expire.rule_option_names.each do |option_name| output.puts option_name end end |