class Hatemile::Util::Css::StyleSheetRule

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

@abstract

Public Instance Methods

get_declarations(property_name) click to toggle source

Returns the declarations with the property.

@abstract @param property_name [String] The property. @return [Hatemile::Util::Css::StyleSheetDeclaration] The declarations

with the property.
# File lib/hatemile/util/css/style_sheet_rule.rb, line 58
def get_declarations(property_name)
  # Interface method
end
get_selector() click to toggle source

Returns the selector of rule.

@abstract @return [String] The selector of rule.

# File lib/hatemile/util/css/style_sheet_rule.rb, line 67
def get_selector
  # Interface method
end
has_declarations?() click to toggle source

Returns that the rule has declarations.

@abstract @return [Boolean] True if the rule has the property or False if the

rule not has declarations.
# File lib/hatemile/util/css/style_sheet_rule.rb, line 47
def has_declarations?
  # Interface method
end
has_property?(property_name) click to toggle source

Returns that the rule has a declaration with the property.

@abstract @param property_name [String] The name of property. @return [Boolean] True if the rule has a declaration with the property

or false if the rule not has a declaration with the property.
# File lib/hatemile/util/css/style_sheet_rule.rb, line 37
def has_property?(property_name)
  # Interface method
end