Method: Beaker::Options::OptionsHash#is_pe?

Defined in:
lib/beaker/options/options_hash.rb

#is_pe?Boolean

Determine if type of ObjectHash is pe, defaults to true

Examples:

Use this method to test if the :type setting is pe

a['type'] = 'pe'
a.is_pe? == true

Returns:

  • (Boolean)


17
18
19
# File 'lib/beaker/options/options_hash.rb', line 17

def is_pe?
  self[:type] ? self[:type] =~ /pe/ : true
end