Class: HyperRouter::History

Inherits:
Object
  • Object
show all
Includes:
Native
Defined in:
lib/hyper-router/history.rb

Instance Method Summary collapse

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

#locationObject



13
14
15
# File 'lib/hyper-router/history.rb', line 13

def location
  HyperRouter::Location.new(`#{@native}.location`)
end

#to_nObject



9
10
11
# File 'lib/hyper-router/history.rb', line 9

def to_n
  @native
end