Class: CSS::StyleSheet::Rule
- Inherits:
-
Object
- Object
- CSS::StyleSheet::Rule
- Defined in:
- lib/css/stylesheet/rule.rb
Instance Attribute Summary collapse
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#selector ⇒ Object
Returns the value of attribute selector.
Instance Method Summary collapse
-
#initialize(selector, properties = []) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(selector, properties = []) ⇒ Rule
Returns a new instance of Rule.
6 7 8 9 |
# File 'lib/css/stylesheet/rule.rb', line 6 def initialize(selector, properties = []) @selector = selector @properties = Set.new(properties) end |
Instance Attribute Details
#properties ⇒ Object
Returns the value of attribute properties.
5 6 7 |
# File 'lib/css/stylesheet/rule.rb', line 5 def properties @properties end |
#selector ⇒ Object
Returns the value of attribute selector.
5 6 7 |
# File 'lib/css/stylesheet/rule.rb', line 5 def selector @selector end |