Module: Purse

Defined in:
lib/purse/cli.rb,
lib/purse/note.rb,
lib/purse/error.rb,
lib/purse/pocket.rb,
lib/purse/version.rb,
lib/purse/settings.rb

Defined Under Namespace

Modules: VERSION Classes: Cli, Error, MissingFile, MissingParameter, Note, Pocket, Settings

Class Method Summary collapse

Class Method Details

.check_for_parameter(name, param) ⇒ Object

Raises:



7
8
9
# File 'lib/purse/error.rb', line 7

def self.check_for_parameter(name, param)
  raise MissingParameter, "You must set a #{name}" if param.nil? || param.strip == ''
end