Sha256: c4fb96df274a4f7988d05c14530da135b21b7252f36f238dc6bd58bbe5b2b8d6
Contents?: true
Size: 666 Bytes
Versions: 24
Compression:
Stored size: 666 Bytes
Contents
# A Frame object wrapse 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. class Mechanize::Page::Frame < Mechanize::Page::Link alias :src :href attr_reader :text alias :name :text def initialize(node, mech, referer) super(node, mech, referer) @node = node @text = node['name'] @href = node['src'] @content = nil end def content @content ||= @mech.get @href, [], page end end
Version data entries
24 entries across 24 versions & 4 rubygems