Module: CommandKit::Usage::ClassMethods
- Defined in:
- lib/command_kit/usage.rb
Overview
Class-level methods.
Instance Method Summary collapse
-
#usage(new_usage = nil) ⇒ String+
Gets or sets the class'es usage string(s).
Instance Method Details
#usage(new_usage = nil) ⇒ String+
Gets or sets the class'es usage string(s).
63 64 65 66 67 68 69 |
# File 'lib/command_kit/usage.rb', line 63 def usage(new_usage=nil) if new_usage @usage = new_usage else @usage || (superclass.usage if superclass.kind_of?(ClassMethods)) end end |