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

Methods included from NativeCachedWrapper

#restricted?, #set_native_reference

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



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

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

Instance Method Details

#declarationObject



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

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