class TableTransform::Table::TableProperties
Table
properties
Public Instance Methods
validate(properties)
click to toggle source
Calls superclass method
TableTransform::Properties#validate
# File lib/table_transform/table.rb, line 187 def validate(properties) super properties.each { |k, v| case k when :name raise "Table property '#{k}' expected to be a non-empty string" unless v.is_a?(String) && !v.empty? when :auto_filter raise "Table property '#{k}' expected to be a boolean" unless !!v == v else raise "Table property unknown '#{k}'" end } end