Class: React::Component::Location

Inherits:
Object
  • Object
show all
Includes:
Native::Wrapper
Defined in:
lib/react/component/location.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/location.rb', line 6

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

Instance Method Details

#to_nObject



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

def to_n
  @native
end