Method: Autumn::Speciator#global

Defined in:
lib/autumn/speciator.rb

#global(arg) ⇒ Object

When called with a hash: Takes a hash of options and values, and sets them at the global scope level.

When called with an option identifier: Returns the value for that option at the global scope level.



50
51
52
# File 'lib/autumn/speciator.rb', line 50

def global(arg)
  arg.kind_of?(Hash) ? @global_options.update(arg.rekey(&:to_sym)) : @global_options[arg]
end