Top Level Namespace

Defined Under Namespace

Modules: RorRegiment Classes: Connector

Instance Method Summary collapse

Instance Method Details

#check_type!(name, value, klass) ⇒ Object



1
2
3
4
5
# File 'lib/ror_regiment/helpers.rb', line 1

def check_type!(name, value, klass)
  unless value.is_a? klass
    raise StandardError.new "BulletLog: given #{name} of type #{instance_of? value} expected #{klass.to_s}"
  end
end