Class: Module::Etest::X

Inherits:
Object show all
Defined in:
lib/vex/base/invalid_argument/invalid_argument.rb

Instance Method Summary collapse

Instance Method Details

#c(x) ⇒ Object



68
69
70
# File 'lib/vex/base/invalid_argument/invalid_argument.rb', line 68

def c(x)
  invalid_argument! "This is strange" unless x == 0
end

#d(x) ⇒ Object



72
73
74
# File 'lib/vex/base/invalid_argument/invalid_argument.rb', line 72

def d(x)
  missing_options! :a, :b unless x.keys?(:a, :b)
end