module Gemmy::Patches::ObjectPatch::InstanceMethods::GetArgOrError

Shifts one ARGV and raises a message if it's undefined. @param msg [String]

Public Instance Methods

get_arg_or_error(msg) click to toggle source
# File lib/gemmy/patches/object_patch.rb, line 282
def get_arg_or_error(msg)
  ([ARGV.shift, msg].tap &method(:error_if_blank)).shift
end