Class: React::ShallowWrapper
- Inherits:
-
Object
- Object
- React::ShallowWrapper
- Defined in:
- lib/opal/react/component.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(native) ⇒ ShallowWrapper
constructor
A new instance of ShallowWrapper.
Constructor Details
#initialize(native) ⇒ ShallowWrapper
Returns a new instance of ShallowWrapper.
5 6 7 |
# File 'lib/opal/react/component.rb', line 5 def initialize(native) @native = native end |
Instance Method Details
#[](key) ⇒ Object
9 10 11 |
# File 'lib/opal/react/component.rb', line 9 def [](key) `return #{@native}[key];` end |