Class: Declaration::DeclarationParser
- Inherits:
-
Object
- Object
- Declaration::DeclarationParser
- Defined in:
- lib/csspress/declaration.rb
Overview
This class parses the text entered and makes the property and value available to the Declaration that initialised it.
Instance Attribute Summary collapse
-
#property ⇒ Object
readonly
:nodoc:.
-
#value ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(raw_data) ⇒ DeclarationParser
constructor
A new instance of DeclarationParser.
Constructor Details
#initialize(raw_data) ⇒ DeclarationParser
Returns a new instance of DeclarationParser.
91 92 93 94 95 96 |
# File 'lib/csspress/declaration.rb', line 91 def initialize(raw_data) @raw_data = raw_data @property = "" @value = "" parse end |
Instance Attribute Details
#property ⇒ Object (readonly)
:nodoc:
89 90 91 |
# File 'lib/csspress/declaration.rb', line 89 def property @property end |
#value ⇒ Object (readonly)
:nodoc:
89 90 91 |
# File 'lib/csspress/declaration.rb', line 89 def value @value end |