Sha256: 7f991e51f3513321549287039c02ee05ff5798d981568efcf648536176bb9f68

Contents?: true

Size: 547 Bytes

Versions: 3

Compression:

Stored size: 547 Bytes

Contents

module React
  class Router
    class History
      include Native::Wrapper

      def self.current
        new(`History`)
      end

      def initialize(native)
        @native = native
      end

      def to_n
        @native
      end

      alias_native :create_browser_history, :createBrowserHistory
      alias_native :create_hash_history, :createHashHistory
      alias_native :create_location, :createLocation
      alias_native :create_memory_history, :createMemoryHistory
      alias_native :create_path, :createPath
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hyper-router-1.0.alpha1.8 lib/react/router/history.rb
hyper-router-1.0.alpha1.7 lib/react/router/history.rb
hyper-router-1.0.alpha1.6 lib/react/router/history.rb