Module: CommandKit::Description::ClassMethods
- Defined in:
- lib/command_kit/description.rb
Overview
Defines class-level methods.
Instance Method Summary collapse
-
#description(new_description = nil) ⇒ String?
Gets or sets the description string.
Instance Method Details
#description(new_description = nil) ⇒ String?
Gets or sets the description string.
60 61 62 63 64 65 66 67 68 |
# File 'lib/command_kit/description.rb', line 60 def description(new_description=nil) if new_description @description = new_description else @description || if superclass.kind_of?(ClassMethods) superclass.description end end end |