More detailed description

module CubyHelpers

Data parsing

CubyHelpers.yes?(variable = self)

Tests if the variable means "yes", returning true or false.

If no variable is provided, tests self

Yes is recognized when the argument is:

yes?(:on) => true
yes?("No") => false
yes?("foo") => false
# and now the self-test
"yEs".yes? => true

CubyHelpers.no?(variable = self)

Tests if the variable means "no", returning true or false. For more info, see yes?

No is recognized when the argument is:

CubyHelpers.yes_no?(variable = self)

Returns true if the argument means yes (using yes? ),
returns false if the argument means no (using no? ),
raises exception otherwise.

Process execution

run_with_out_err(command, stdin_string = '')

module :run_with_out_err

run_with_out_err_savefiles(command, filename_o, filename_e, stdin_string = '')

module :run_with_out_err_savefiles

Regular expressions

grep(filename,regexp) # => boolean

module :grep