Sha256: 2cad0883568d3a74b7c401f414a80bb19bb502d92137e39e5f6ae0e964ce732e
Contents?: true
Size: 583 Bytes
Versions: 2
Compression:
Stored size: 583 Bytes
Contents
module React class Router class DSL class TransitionContext def initialize(opts = {}) @prev_state = Hash.new opts[:prev_state] @next_state = Hash.new opts[:next_state] @replace = opts[:replace] @location = Hash.new opts[:location] end attr_reader :prev_state attr_reader :next_state attr_reader :location def replace(url) `#{@replace}(#{url.to_n})` url end def promise @promise ||= Promise.new end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyper-router-2.4.1 | lib/react/router/dsl/transition_context.rb |
hyper-router-2.4.0 | lib/react/router/dsl/transition_context.rb |