Class: HyperRouter::History
- Inherits:
-
Object
- Object
- HyperRouter::History
- Includes:
- Native
- Defined in:
- lib/hyper-router/history.rb
Instance Method Summary collapse
-
#initialize(native) ⇒ History
constructor
A new instance of History.
- #location ⇒ Object
- #to_n ⇒ Object
Constructor Details
#initialize(native) ⇒ History
Returns a new instance of History.
5 6 7 |
# File 'lib/hyper-router/history.rb', line 5 def initialize(native) @native = native end |
Instance Method Details
#location ⇒ Object
13 14 15 |
# File 'lib/hyper-router/history.rb', line 13 def location HyperRouter::Location.new(`#{@native}.location`) end |
#to_n ⇒ Object
9 10 11 |
# File 'lib/hyper-router/history.rb', line 9 def to_n @native end |