Method: Glark::OptionUtil#to_boolean

Defined in:
lib/glark/util/optutil.rb

#to_boolean(value) ⇒ Object

returns whether the value matches a true value, such as “yes”, “true”, or “on”.



10
11
12
# File 'lib/glark/util/optutil.rb', line 10

def to_boolean value
  [ "yes", "true", "on" ].include? value.downcase
end