Class: TableTransform::Table::ColumnProperties
- Inherits:
-
Properties
- Object
- Properties
- TableTransform::Table::ColumnProperties
- Defined in:
- lib/table_transform/table.rb
Overview
Column properties
Instance Method Summary collapse
Methods inherited from Properties
#initialize, #reset, #to_h, #update
Constructor Details
This class inherits a constructor from TableTransform::Properties
Instance Method Details
#validate(properties) ⇒ Object
201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/table_transform/table.rb', line 201 def validate(properties) super properties.each { |k, v| case k when :format raise "Column property 'format' expected to be a non-empty string" unless v.is_a?(String) && !v.empty? else raise "Unknown column property '#{k}'" end } end |