Module: Bashly::Script::Introspection::Variables

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

Instance Method Summary collapse

Instance Method Details

#variablesObject

Returns an array of Variable objects



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

def variables
  return [] unless options['variables']

  options['variables'].map do |options|
    Variable.new options
  end
end