nackclass.rb

Copyright © 2005 Thomas Sawyer

  Ruby License

  This module is free software. You may use, modify, and/or redistribute this
  software under the same terms as Ruby.

  This program is distributed in the hope that it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  FOR A PARTICULAR PURPOSE.

Author(s)

  • Thomas Sawyer

Developer Notes

TODO I beleive this class has even more potential yet.

     It would be interesting to see if a catch/try correction
     facility could be built into it too.
Methods
Public Instance methods
nail( arg )

A private Object method which will raise a NackClass’ error.

# File lib/facets/more/nackclass.rb, line 110
def nail( arg )
  if NackClass === arg
    arg.raise_error
  else
    return arg
  end
end