Class: Browser::Canvas::StyleObject

Inherits:
Object
  • Object
show all
Includes:
Native
Defined in:
opal/browser/canvas/style.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ StyleObject

Returns a new instance of StyleObject.


8
9
10
11
12
# File 'opal/browser/canvas/style.rb', line 8

def initialize(context)
  @context = context

  super(@context.to_n)
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context


6
7
8
# File 'opal/browser/canvas/style.rb', line 6

def context
  @context
end