Skip to content

Commit

Permalink
Added accessor for frame content (GH #111)
Browse files Browse the repository at this point in the history
  • Loading branch information
chancancode committed Jun 22, 2011
1 parent 917f3b0 commit 4c5a831
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/mechanize/page/frame.rb
Expand Up @@ -14,6 +14,11 @@ def initialize(node, mech, referer)
@node = node
@text = node['name']
@href = node['src']
@content = nil
end

def content
@content ||= @mech.get @href
end
end
end
Expand Down

0 comments on commit 4c5a831

Please sign in to comment.