Module: Kernel
- Defined in:
- lib/eac_ruby_utils/patches/kernel/ibr.rb,
lib/eac_ruby_utils/patches/kernel/nyi.rb
Instance Method Summary collapse
-
#ibr(message = nil) ⇒ Object
Raise exception with text “Invalid branch reached”.
-
#nyi(message = nil) ⇒ Object
Raise exception with text “Not yet implemented”.
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( = nil) s = "Invalid branch reached (Called in #{caller.first})" s += ": #{}" if 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( = nil) s = "Not yet implemented (Called in #{caller.first})" s += ": #{}" if raise s end |