Class: Web::Unit::Frame
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
— Frame#src reader of ‘src’ attribute.
-
#src ⇒ Object
readonly
— Frame#src reader of ‘src’ attribute.
Attributes inherited from HtmlElem
#array, #attrs, #children, #data, #tag
Instance Method Summary collapse
-
#initialize(ah) ⇒ Frame
constructor
A new instance of Frame.
-
#read ⇒ Object
— Frame#read return a Response of getting of ‘src’ attribute.
Methods inherited from HtmlElem
#append, #extract, #find, #has?, #inspect, #print, #readlink, #search
Constructor Details
#initialize(ah) ⇒ Frame
Returns a new instance of Frame.
12 13 14 15 16 |
# File 'lib/web/unit/frame.rb', line 12 def initialize( ah ) super( 'frame', ah ) @src = ah["src"] @name = ah["name"] end |
Instance Attribute Details
#name ⇒ Object (readonly)
— Frame#src
reader of 'src' attribute.
— Frame#name
reader of 'name' attribute.
25 26 27 |
# File 'lib/web/unit/frame.rb', line 25 def name @name end |
#src ⇒ Object (readonly)
— Frame#src
reader of 'src' attribute.
— Frame#name
reader of 'name' attribute.
25 26 27 |
# File 'lib/web/unit/frame.rb', line 25 def src @src end |
Instance Method Details
#read ⇒ Object
— Frame#read
return a Response of getting of 'src' attribute.
32 33 34 |
# File 'lib/web/unit/frame.rb', line 32 def read Response::new.init_http( @src, "GET" ) if @src != nil end |