Class: Browser::Canvas::StyleObject
- Includes:
- Native
- Defined in:
- opal/browser/canvas/style.rb
Direct Known Subclasses
Style, Browser::Canvas::Style::Image, Browser::Canvas::Style::Line, Browser::Canvas::Style::Shadow, Browser::Canvas::Style::Text
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(context) ⇒ StyleObject
constructor
A new instance of StyleObject.
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
#context ⇒ Object (readonly)
Returns the value of attribute context.
6 7 8 |
# File 'opal/browser/canvas/style.rb', line 6 def context @context end |