Module: CommandKit::Examples::ClassMethods
- Defined in:
- lib/command_kit/examples.rb
Overview
Defines class-level methods.
Instance Method Summary collapse
-
#examples(new_examples = nil) ⇒ Array<String>?
Gets or sets the example commands.
Instance Method Details
#examples(new_examples = nil) ⇒ Array<String>?
Gets or sets the example commands.
67 68 69 70 71 72 73 74 75 |
# File 'lib/command_kit/examples.rb', line 67 def examples(new_examples=nil) if new_examples @examples = Array(new_examples) else @examples || if superclass.kind_of?(ClassMethods) superclass.examples end end end |