Class: Kame::Remocon::Opal::Image

Inherits:
Object
  • Object
show all
Includes:
Native, Native::Helpers
Defined in:
lib/kame/remocon/opal/image.rb

Instance Method Summary collapse

Constructor Details

#initializeImage

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