Module: Rodish::Plugins::CacheHelpOutput::CommandMethods

Defined in:
lib/rodish/plugins/cache_help_output.rb

Instance Method Summary collapse

Instance Method Details

#freezeObject

Cache and help output when freezing the command.



14
15
16
17
# File 'lib/rodish/plugins/cache_help_output.rb', line 14

def freeze
  @help = help.freeze
  super
end

#helpObject

Return cached help if it is present.



20
21
22
# File 'lib/rodish/plugins/cache_help_output.rb', line 20

def help
  @help || super
end