Class: CSSPool::CSS::Declaration

Inherits:
Node
  • Object
show all
Defined in:
lib/csspool/css/declaration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#expressionsObject

Returns the value of attribute expressions.



5
6
7
# File 'lib/csspool/css/declaration.rb', line 5

def expressions
  @expressions
end

#importantObject 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

#propertyObject

Returns the value of attribute property.



4
5
6
# File 'lib/csspool/css/declaration.rb', line 4

def property
  @property
end

#rule_setObject

Returns the value of attribute rule_set.



7
8
9
# File 'lib/csspool/css/declaration.rb', line 7

def rule_set
  @rule_set
end