Class: Kame::Remocon::Opal::Image
- Inherits:
-
Object
- Object
- Kame::Remocon::Opal::Image
- Includes:
- Native, Native::Helpers
- Defined in:
- lib/kame/remocon/opal/image.rb
Instance Method Summary collapse
-
#initialize ⇒ Image
constructor
A new instance of Image.
- #onload(&block) ⇒ Object
Constructor Details
#initialize ⇒ Image
Returns a new instance of Image.
5 6 7 |
# File 'lib/kame/remocon/opal/image.rb', line 5 def initialize super `new Image()` end |
Instance Method Details
#onload(&block) ⇒ Object
12 13 14 |
# File 'lib/kame/remocon/opal/image.rb', line 12 def onload(&block) `#@native.onload = block` end |