Class: Stylesheet::CssFontFaceRule
- Defined in:
- lib/stylesheet/css_font_face_rule.rb
Constant Summary
Constants inherited from CssRule
Stylesheet::CssRule::CHARSET_RULE, Stylesheet::CssRule::FONT_FACE_RULE, Stylesheet::CssRule::IMPORT_RULE, Stylesheet::CssRule::MEDIA_RULE, Stylesheet::CssRule::NULL_RULE, Stylesheet::CssRule::STYLE_RULE
Instance Attribute Summary
Attributes inherited from CssRule
#css_text, #parent_rule, #parent_style_sheet
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from CssRule
factory, inherited, #initialize, #matches_rule?, #to_s
Constructor Details
This class inherits a constructor from Stylesheet::CssRule
Class Method Details
.matches_rule?(text) ⇒ Boolean
13 14 15 |
# File 'lib/stylesheet/css_font_face_rule.rb', line 13 def self.matches_rule?(text) text.include?("@font-face") end |
Instance Method Details
#style ⇒ Object
8 9 10 11 |
# File 'lib/stylesheet/css_font_face_rule.rb', line 8 def style CssStyleDeclaration.new(:css_text => @declarations, :parent_rule => self) end |
#type ⇒ Object
4 5 6 |
# File 'lib/stylesheet/css_font_face_rule.rb', line 4 def type CssRule::FONT_FACE_RULE end |