class Beaker::Options::OptionsHash

and recursively merges hashes
A hash that treats Symbol and String keys interchangeably

def get_type

Returns:
  • (Symbol) - the type given in the options

Other tags:
    Example: Use this method to test if the :type setting is pe -
def get_type
  case self[:type]
  when /pe/
    :pe
  when /foss/
    :foss
  else
    :foss
  end
end

def is_pe?

Returns:
  • (Boolean) -

Other tags:
    Example: Use this method to test if the :type setting is pe -
def is_pe?
  self[:type] ? self[:type] =~ /pe/ : true
end