Skip to content

Commit

Permalink
fix call-seq docs for Mechanize::Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
leejarvis committed Mar 5, 2013
1 parent 1a6588b commit 59f6c24
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions lib/mechanize/parser.rb
Expand Up @@ -54,21 +54,30 @@ module Mechanize::Parser
attr_accessor :code

##
# :method: [](header)
# :method: []
#
# :call-seq:
# [](header)
#
# Access HTTP +header+ by name

def_delegator :header, :[], :[]

##
# :method: []=(header, value)
# :method: []=
#
# :call-seq:
# []=(header, value)
#
# Set HTTP +header+ to +value+

def_delegator :header, :[]=, :[]=

##
# :method: key?(header)
# :method: key?
#
# :call-seq:
# key?(header)
#
# Is the named +header+ present?

Expand Down

0 comments on commit 59f6c24

Please sign in to comment.