Class: StyleSheetParser::DeclarationParser

Inherits:
Object
  • Object
show all
Defined in:
lib/csspress/style_sheet_parser.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

Instance Method Summary collapse

Constructor Details

#initialize(raw_data) ⇒ DeclarationParser

Returns a new instance of DeclarationParser.



238
239
240
241
242
243
244
# File 'lib/csspress/style_sheet_parser.rb', line 238

def initialize(raw_data)
  @declaration = nil
  @raw_data = raw_data
  @property = ""
  @value = ""
  parse
end

Instance Attribute Details

#declarationObject (readonly)

:nodoc:



236
237
238
# File 'lib/csspress/style_sheet_parser.rb', line 236

def declaration
  @declaration
end