Module: Kernel

Defined in:
lib/omg/kitties.rb

Overview

omg_kitties enables an innovative new way to exit any and all Ruby scripts. Intstead of typing the boring old ‘exit`, you can now achieve the same effect in a more semantically-loaded way by typing `omg! kitties!`

Author

Cody Brimhall <[email protected]>

Created

19 Dec 2008

Copyright

Copyright © Cody Brimhall, 2008. All rights reserved.

Defined Under Namespace

Classes: Kitties

Instance Method Summary collapse

Instance Method Details

#kitties!Object

Return a new instance of Kitties



15
16
17
# File 'lib/omg/kitties.rb', line 15

def kitties!
  Kitties.new
end

#omg!(kitties) ⇒ Object

Exit the script if the passed in object is a Kitties



20
21
22
# File 'lib/omg/kitties.rb', line 20

def omg!(kitties)
  exit if kitties.class == Kitties
end