diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-25 06:49:59 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-25 06:49:59 +0000 |
commit | 24b57b102c1992b679f8f8c0fd1a0239289a129b (patch) | |
tree | e25055dbfcef70d3b01855c004e57e130b3fac5f /lib/csv/row.rb | |
parent | cdca14e75e98e2657daa40589f18a0ad46846020 (diff) |
Upgrade CSV to 3.0.4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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. |