Module: NaughtyOrNice::ClassMethods

Defined in:
lib/naughty_or_nice.rb

Overview

Ruby idiom that allows ‘include` to create class methods

Instance Method Summary collapse

Instance Method Details

#valid?(text) ⇒ Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/naughty_or_nice.rb', line 50

def valid?(text)
  new(text).valid?
end