Class: Hatemile::Util::Css::StyleSheetRule Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/hatemile/util/css/style_sheet_rule.rb

Overview

This class is abstract.

The StyleSheetRule interface contains the methods for access the CSS rule.

Direct Known Subclasses

Rcp::RCPRule

Instance Method Summary collapse

Instance Method Details

#get_declarations(property_name) ⇒ Hatemile::Util::Css::StyleSheetDeclaration

This method is abstract.

Returns the declarations with the property.

Parameters:

  • property_name (String)

    The property.

Returns:



58
59
60
# File 'lib/hatemile/util/css/style_sheet_rule.rb', line 58

def get_declarations(property_name)
  # Interface method
end

#get_selectorString

This method is abstract.

Returns the selector of rule.

Returns:

  • (String)

    The selector of rule.



67
68
69
# File 'lib/hatemile/util/css/style_sheet_rule.rb', line 67

def get_selector
  # Interface method
end

#has_declarations?Boolean

This method is abstract.

Returns that the rule has declarations.

Returns:

  • (Boolean)

    True if the rule has the property or False if the rule not has declarations.



47
48
49
# File 'lib/hatemile/util/css/style_sheet_rule.rb', line 47

def has_declarations?
  # Interface method
end

#has_property?(property_name) ⇒ Boolean

This method is abstract.

Returns that the rule has a declaration with the property.

Parameters:

  • property_name (String)

    The name of property.

Returns:

  • (Boolean)

    True if the rule has a declaration with the property or false if the rule not has a declaration with the property.



37
38
39
# File 'lib/hatemile/util/css/style_sheet_rule.rb', line 37

def has_property?(property_name)
  # Interface method
end