Class: React::Component::Match

Inherits:
Object
  • Object
show all
Includes:
Native::Wrapper
Defined in:
lib/react/component/match.rb

Instance Method Summary collapse

Constructor Details

#initialize(native) ⇒ Match

Returns a new instance of Match.



6
7
8
# File 'lib/react/component/match.rb', line 6

def initialize(native)
  @native = native
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(prop, *args, &block) ⇒ Object



10
11
12
# File 'lib/react/component/match.rb', line 10

def method_missing(prop, *args, &block)
  @native.JS[:props].JS[:match].JS[:params].JS[prop]
end

Instance Method Details

#is_exactObject



14
15
16
# File 'lib/react/component/match.rb', line 14

def is_exact
  @native.JS[:props].JS[:match].JS[:isExact]
end

#paramsObject



18
19
20
# File 'lib/react/component/match.rb', line 18

def params
  self
end

#pathObject



22
23
24
# File 'lib/react/component/match.rb', line 22

def path
  @native.JS[:props].JS[:match].JS[:path]
end

#to_nObject



30
31
32
# File 'lib/react/component/match.rb', line 30

def to_n
  @native.JS[:props].JS[:match]
end

#urlObject



26
27
28
# File 'lib/react/component/match.rb', line 26

def url
  @native.JS[:props].JS[:match].JS[:url]
end