Class: CSSPool::CSS::Declaration
- Defined in:
- lib/csspool/css/declaration.rb
Instance Attribute Summary collapse
-
#expressions ⇒ Object
Returns the value of attribute expressions.
-
#important ⇒ Object
(also: #important?)
Returns the value of attribute important.
-
#property ⇒ Object
Returns the value of attribute property.
-
#rule_set ⇒ Object
Returns the value of attribute rule_set.
Instance Method Summary collapse
-
#initialize(property, expressions, important, rule_set) ⇒ Declaration
constructor
A new instance of Declaration.
Methods inherited from Node
#==, #accept, #children, #each, #hash, #to_css, #to_minified_css
Constructor Details
#initialize(property, expressions, important, rule_set) ⇒ Declaration
Returns a new instance of Declaration.
11 12 13 14 15 16 |
# File 'lib/csspool/css/declaration.rb', line 11 def initialize property, expressions, important, rule_set @property = property @expressions = expressions @important = important @rule_set = rule_set end |
Instance Attribute Details
#expressions ⇒ Object
Returns the value of attribute expressions.
5 6 7 |
# File 'lib/csspool/css/declaration.rb', line 5 def expressions @expressions end |
#important ⇒ Object Also known as: important?
Returns the value of attribute important.
6 7 8 |
# File 'lib/csspool/css/declaration.rb', line 6 def important @important end |
#property ⇒ Object
Returns the value of attribute property.
4 5 6 |
# File 'lib/csspool/css/declaration.rb', line 4 def property @property end |
#rule_set ⇒ Object
Returns the value of attribute rule_set.
7 8 9 |
# File 'lib/csspool/css/declaration.rb', line 7 def rule_set @rule_set end |