Sha256: 4e4ea95630db96da4df9630415ac003ff812b01125bb4addf5c862073b26316d

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 Bytes

Contents

module HyperRouter
  class History
    include Native

    def initialize(native)
      @native = native
    end

    def to_n
      @native
    end

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

    alias_native :block
    alias_native :create_href, :createHref
    alias_native :go
    alias_native :go_back, :goBack
    alias_native :go_forward, :goForward
    alias_native :push, :push
    alias_native :replace, :replace
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyper-router-4.1.1 lib/hyper-router/history.rb
hyper-router-4.0.1 lib/hyper-router/history.rb