Class: React::Component::Match

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

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



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

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

Instance Method Details

#is_exactObject



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

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

#paramsObject



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

def params
  self
end

#pathObject



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

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

#to_nObject



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

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

#urlObject



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

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