Class: TypedAttributes::Parser::ArrayType

Inherits:
BaseType
  • Object
show all
Defined in:
lib/typed_attributes/parser/array_type.rb

Direct Known Subclasses

FlagsType, IdsType

Instance Attribute Summary

Attributes inherited from BaseType

#attribute, #model, #options

Instance Method Summary collapse

Methods inherited from BaseType

#initialize, #readers, #storage_var, #writers

Constructor Details

This class inherits a constructor from TypedAttributes::Parser::BaseType

Instance Method Details

#parse(values) ⇒ Object



5
6
7
# File 'lib/typed_attributes/parser/array_type.rb', line 5

def parse(values)
  values.reject(&:blank?)
end