Class: HistoryIE
- Inherits:
-
Object
- Object
- HistoryIE
- Defined in:
- lib/red_query/history.rb
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize ⇒ HistoryIE
constructor
A new instance of HistoryIE.
- #set(hash) ⇒ Object
Constructor Details
Instance Method Details
#get ⇒ Object
27 28 29 |
# File 'lib/red_query/history.rb', line 27 def get String.new(`#{@iframe}.contentWindow.document.location.hash`) end |
#set(hash) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/red_query/history.rb', line 18 def set(hash) `var d = #{@iframe}.__jq_native__.contentWindow.document; d.open(); d.close(); d.location.hash = #{hash}.__value__; ` true end |