Module: Bashly::Script::Introspection::Examples

Included in:
Command
Defined in:
lib/bashly/script/introspection/examples.rb

Instance Method Summary collapse

Instance Method Details

#examplesObject

Returns an array of examples



6
7
8
9
10
# File 'lib/bashly/script/introspection/examples.rb', line 6

def examples
  return nil unless options['examples']

  options['examples'].is_a?(Array) ? options['examples'] : [options['examples']]
end