Class: Browser::CSS::Rule::Style

Inherits:
Browser::CSS::Rule show all
Defined in:
opal/browser/css/rule/style.rb

Constant Summary

Constants inherited from Browser::CSS::Rule

CHARSET_RULE, COUNTER_STYLE_RULE, DOCUMENT_RULE, FONT_FACE_RULE, FONT_FEATURE_VALUES_RULE, IMPORT_RULE, KEYFRAMES_RULE, KEYFRAME_RULE, MEDIA_RULE, NAMESPACE_RULE, PAGE_RULE, REGION_STYLE_RULE, STYLE_RULE, SUPPORTS_RULE, VIEWPORT_RULE

Instance Method Summary collapse

Methods inherited from Browser::CSS::Rule

new, #parent, #style_sheet

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object


11
12
13
# File 'opal/browser/css/rule/style.rb', line 11

def method_missing(*args, &block)
  declaration.__send__(*args, &block)
end

Instance Method Details

#declarationObject


7
8
9
# File 'opal/browser/css/rule/style.rb', line 7

def declaration
  Declaration.new(`#@native.style`)
end