Class: CSSPool::CSS::KeyframesRule
- Defined in:
- lib/csspool/css/keyframes_rule.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#rule_sets ⇒ Object
Returns the value of attribute rule_sets.
Attributes inherited from Node
#inner_end_pos, #inner_start_pos, #outer_end_pos, #outer_start_pos
Instance Method Summary collapse
-
#initialize(name) ⇒ KeyframesRule
constructor
A new instance of KeyframesRule.
Methods inherited from Node
#==, #accept, #children, #each, #hash, #to_css, #to_minified_css
Constructor Details
#initialize(name) ⇒ KeyframesRule
Returns a new instance of KeyframesRule.
8 9 10 11 |
# File 'lib/csspool/css/keyframes_rule.rb', line 8 def initialize name @name = name @rule_sets = [] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/csspool/css/keyframes_rule.rb', line 5 def name @name end |
#rule_sets ⇒ Object
Returns the value of attribute rule_sets.
6 7 8 |
# File 'lib/csspool/css/keyframes_rule.rb', line 6 def rule_sets @rule_sets end |