Class: Servactory::Maintenance::Attributes::Tools::CheckErrors
- Inherits:
-
Object
- Object
- Servactory::Maintenance::Attributes::Tools::CheckErrors
- Extended by:
- Forwardable
- Defined in:
- lib/servactory/maintenance/attributes/tools/check_errors.rb
Instance Method Summary collapse
-
#initialize(collection = Set.new) ⇒ CheckErrors
constructor
A new instance of CheckErrors.
- #not_blank ⇒ Object
Constructor Details
#initialize(collection = Set.new) ⇒ CheckErrors
Returns a new instance of CheckErrors.
12 13 14 |
# File 'lib/servactory/maintenance/attributes/tools/check_errors.rb', line 12 def initialize(collection = Set.new) @collection = collection end |
Instance Method Details
#not_blank ⇒ Object
16 17 18 |
# File 'lib/servactory/maintenance/attributes/tools/check_errors.rb', line 16 def not_blank CheckErrors.new(reject(&:blank?)) end |