Class: React::Component::Match
- Inherits:
-
Object
- Object
- React::Component::Match
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
14
15
16
|
# File 'lib/react/component/match.rb', line 14
def is_exact
@native.JS[:props].JS[:match].JS[:isExact]
end
|
18
19
20
|
# File 'lib/react/component/match.rb', line 18
def params
self
end
|
22
23
24
|
# File 'lib/react/component/match.rb', line 22
def path
@native.JS[:props].JS[:match].JS[:path]
end
|
30
31
32
|
# File 'lib/react/component/match.rb', line 30
def to_n
@native.JS[:props].JS[:match]
end
|
26
27
28
|
# File 'lib/react/component/match.rb', line 26
def url
@native.JS[:props].JS[:match].JS[:url]
end
|