Module: Kernel

Defined in:
lib/eac_ruby_utils/patches/kernel/ibr.rb,
lib/eac_ruby_utils/patches/kernel/nyi.rb

Instance Method Summary collapse

Instance Method Details

#ibr(message = nil) ⇒ Object

Raise exception with text “Invalid branch reached”.



5
6
7
8
9
# File 'lib/eac_ruby_utils/patches/kernel/ibr.rb', line 5

def ibr(message = nil)
  s = "Invalid branch reached (Called in #{caller.first})"
  s += ": #{message}" if message
  raise s
end

#nyi(message = nil) ⇒ Object

Raise exception with text “Not yet implemented”.



5
6
7
8
9
# File 'lib/eac_ruby_utils/patches/kernel/nyi.rb', line 5

def nyi(message = nil)
  s = "Not yet implemented (Called in #{caller.first})"
  s += ": #{message}" if message
  raise s
end