Class: IEgrip::Document
Overview
Constant Summary
Constants inherited
from Node
Node::NODETYPE_DIC
Instance Method Summary
collapse
#getElementByName, #getElementByText, #getElementByTitle, #getElementByValue, #getElementsByName, #getElementsByTagName, #getElementsByText, #getElementsByTitle, #getElementsByValue
#childElements, #childNodes, #contains, #firstChild, #hasChildElements, #hasChildNodes, #isEqualNode, #lastChild, #nextSibling, #previousSibling, #struct
Methods inherited from Node
#inspect, #nodeName, #nodeType, #nodeTypeName
Methods inherited from GripWrapper
#initialize, #inspect, #ole_methodNames, #raw
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class IEgrip::GripWrapper
Instance Method Details
#all ⇒ Object
384
385
386
387
|
# File 'lib/iegrip.rb', line 384
def all
raw_all = @raw_object.all
raw_all ? HTMLElementCollection.new(raw_all, @ie_obj) : nil
end
|
#body ⇒ Object
380
381
382
|
# File 'lib/iegrip.rb', line 380
def body()
HTMLElement.new(@raw_object.body, @ie_obj)
end
|
#createAttribute(attr_name) ⇒ Object
413
414
415
416
|
# File 'lib/iegrip.rb', line 413
def createAttribute(attr_name)
raw_attr = @raw_object.createAttribute(attr_name);
Attr.new(raw_attr, @ie_obj)
end
|
#createElement(tag_name) ⇒ Object
408
409
410
411
|
# File 'lib/iegrip.rb', line 408
def createElement(tag_name)
raw_element = @raw_object.createElement(tag_name)
HTMLElement.new(raw_element, @ie_obj)
end
|
#documentElement ⇒ Object
403
404
405
406
|
# File 'lib/iegrip.rb', line 403
def documentElement
raw_element = @raw_object.documentElement()
raw_element ? HTMLElement.new(raw_element, @ie_obj) : nil
end
|
#frames(index = nil) ⇒ Object
389
390
391
392
393
394
395
396
|
# File 'lib/iegrip.rb', line 389
def frames(index=nil)
if index
return(nil) if index >= @raw_object.Frames.length
Frames.new(@raw_object.frames, @ie_obj)[index]
else
Frames.new(@raw_object.frames, @ie_obj)
end
end
|
#getElementById(element_id) ⇒ Object
398
399
400
401
|
# File 'lib/iegrip.rb', line 398
def getElementById(element_id)
raw_element = @raw_object.getElementById(element_id)
raw_element ? HTMLElement.new(raw_element, @ie_obj) : nil
end
|
#head ⇒ Object
375
376
377
378
|
# File 'lib/iegrip.rb', line 375
def head()
raw_head = @raw_object.head
raw_head ? HTMLElement.new(raw_head, @ie_obj) : nil
end
|