lib/table_helper/cell.rb in table_helper-0.0.3 vs lib/table_helper/cell.rb in table_helper-0.0.4
- old
+ new
@@ -32,10 +32,10 @@
end
# Indicates what type of content will be stored in this cell. This can
# either be set to either :data or :header.
def content_type=(value)
- raise ArgumentError, "content_type must be set to :data or :header, was: #{value.inspect}" if ![:data, :header].include?(value)
+ raise ArgumentError, "content_type must be set to :data or :header, was: #{value.inspect}" unless [:data, :header].include?(value)
@content_type = value
end
private
def tag_name