Class: React::Router::History
- Inherits:
-
Object
- Object
- React::Router::History
- Includes:
- Native
- Defined in:
- lib/react/router/history.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(native) ⇒ History
constructor
A new instance of History.
- #to_n ⇒ Object
Constructor Details
#initialize(native) ⇒ History
Returns a new instance of History.
10 11 12 |
# File 'lib/react/router/history.rb', line 10 def initialize(native) @native = native end |
Class Method Details
.current ⇒ Object
6 7 8 |
# File 'lib/react/router/history.rb', line 6 def self.current new(`History`) end |
Instance Method Details
#to_n ⇒ Object
14 15 16 |
# File 'lib/react/router/history.rb', line 14 def to_n @native end |