Class: StyleSheetParser::RuleParser
- Inherits:
-
Object
- Object
- StyleSheetParser::RuleParser
- Defined in:
- lib/csspress/style_sheet_parser.rb
Overview
This class parses the text entered and makes the name and declarations available to the Rule that initialised it.
Instance Attribute Summary collapse
-
#rule ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(raw_data) ⇒ RuleParser
constructor
Create a new RuleParser and parse raw_data.
Constructor Details
#initialize(raw_data) ⇒ RuleParser
Create a new RuleParser and parse raw_data
179 180 181 182 183 184 185 |
# File 'lib/csspress/style_sheet_parser.rb', line 179 def initialize( raw_data ) @rule = nil @raw_data = raw_data @name = "" @declarations = [] parse end |
Instance Attribute Details
#rule ⇒ Object (readonly)
:nodoc:
175 176 177 |
# File 'lib/csspress/style_sheet_parser.rb', line 175 def rule @rule end |