class Beaker::Options::OptionsHash
and recursively merges hashes
A hash that treats Symbol and String keys interchangeably
def get_type
-
(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?
-
(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