class Mechanize::Page::Frame
A Frame object wraps a frame HTML element. Frame objects can be treated just like Link objects. They contain src, the link they refer to and a name, the name of the frame they refer to. src and name are aliased to href and text respectively so that a Frame object can be treated just like a Link.
Attributes
Public Class Methods
Source
# File lib/mechanize/page/frame.rb, line 17 def initialize(node, mech, referer) super(node, mech, referer) @node = node @text = node['name'] @href = node['src'] @content = nil end
Calls superclass method
Mechanize::Page::Link::new
Public Instance Methods
Source
# File lib/mechanize/page/frame.rb, line 25 def content @content ||= @mech.get @href, [], page end