lib/cliutils/prefs/pref_validators/pref_validator.rb in cliutils-2.0.3 vs lib/cliutils/prefs/pref_validators/pref_validator.rb in cliutils-2.1.0
- old
+ new
@@ -12,20 +12,15 @@
# Holds the message to display to the
# user when the Validator fails.
# @return [String]
attr_accessor :message
- # Holds a reference to the Pref that is
- # applying this Validator.
- # @return [Pref]
- attr_accessor :pref
-
# Validate the Validator!
- # @parameter [String] text
+ # @param [String] text
# @raise [StandardError] if the subclass
# doesn't implement this method.
# @return [void]
def validate(text = nil)
fail "`validate` method not implemented on caller: #{ self.class }"
end
end
-end
\ No newline at end of file
+end