diff options
Diffstat (limited to 'lib/csv/row.rb')
-rw-r--r-- | lib/csv/row.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/csv/row.rb b/lib/csv/row.rb index 31eab2d0a4..c79d75cd8a 100644 --- a/lib/csv/row.rb +++ b/lib/csv/row.rb @@ -130,6 +130,7 @@ class CSV alias_method :include?, :has_key? alias_method :key?, :has_key? alias_method :member?, :has_key? + alias_method :header?, :has_key? # # :call-seq: @@ -286,12 +287,6 @@ class CSV index.nil? ? nil : index + minimum_index end - # Returns +true+ if +name+ is a header for this row, and +false+ otherwise. - def header?(name) - headers.include? name - end - alias_method :include?, :header? - # # Returns +true+ if +data+ matches a field in this row, and +false+ # otherwise. |