Class: Expire::Commands::RuleClasses

Inherits:
Expire::Command show all
Defined in:
lib/expire/commands/rule_classes.rb

Overview

Print all rule-classes

Instance Method Summary collapse

Methods inherited from Expire::Command

#command, #cursor, #editor, #exec_exist?, #generator, #pager, #platform, #prompt, #screen, #which

Constructor Details

#initialize(_) ⇒ RuleClasses

standard:disable Style/RedundantInitialize



10
11
# File 'lib/expire/commands/rule_classes.rb', line 10

def initialize(_)
end

Instance Method Details

#execute(output: $stdout) ⇒ Object

standard:enable Style/RedundantInitialize



14
15
16
17
18
# File 'lib/expire/commands/rule_classes.rb', line 14

def execute(output: $stdout)
  Expire.rule_classes.each do |rule_class|
    output.puts rule_class
  end
end