Sha256: 7d4640162f1ca1c426d9479815380d32d33b71b586c4e2156dbcfd1e984b51ea

Contents?: true

Size: 509 Bytes

Versions: 5

Compression:

Stored size: 509 Bytes

Contents

module TablePal
  class TablePalError < StandardError

    # def initialize(message)
    #   @meth = meth

    #   options.each do |key, value|
    #     validate_option(key, value)
    #   end
    # end

    # def validate_option(key, value)
    #   case key
    #   when :row then validate_row(value)
    #   end
    # end

    # def validate_row(value)
    #   return if value.is_a?(Row)

    #   raise "Table.#{meth} error. Expected `row:` to be a Row instance, not a #{value.class}"
    # end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
table_pal-0.3.3 lib/table_pal_error.rb
table_pal-0.3.2 lib/table_pal_error.rb
table_pal-0.3.1 lib/table_pal_error.rb
table_pal-0.3.0 lib/table_pal_error.rb
table_pal-0.2.0 lib/table_pal_error.rb