Class: Fdlint::Parser::CSS::Declaration
- Defined in:
- lib/fdlint/parser/css/struct.rb
Instance Attribute Summary collapse
-
#property ⇒ Object
readonly
Returns the value of attribute property.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(property, value) ⇒ Declaration
constructor
A new instance of Declaration.
- #position ⇒ Object
- #text ⇒ Object
Constructor Details
#initialize(property, value) ⇒ Declaration
Returns a new instance of Declaration.
96 97 98 |
# File 'lib/fdlint/parser/css/struct.rb', line 96 def initialize(property, value) @property, @value = property, value end |
Instance Attribute Details
#property ⇒ Object (readonly)
Returns the value of attribute property.
94 95 96 |
# File 'lib/fdlint/parser/css/struct.rb', line 94 def property @property end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
94 95 96 |
# File 'lib/fdlint/parser/css/struct.rb', line 94 def value @value end |