Class: React::Ref

Inherits:
Object show all
Includes:
Native::Wrapper
Defined in:
lib/react/ref.rb

Instance Method Summary collapse

Constructor Details

#initialize(native) ⇒ Ref

Returns a new instance of Ref.



5
6
7
# File 'lib/react/ref.rb', line 5

def initialize(native)
  @native = native
end

Instance Method Details

#currentObject



13
14
15
# File 'lib/react/ref.rb', line 13

def current
  `Opal.React.native_element_or_component_to_ruby(#@native.current)`
end

#is_wrapped_refObject



9
10
11
# File 'lib/react/ref.rb', line 9

def is_wrapped_ref
  true
end