Class: Declaration::DeclarationParser

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#propertyObject (readonly)

:nodoc:



89
90
91
# File 'lib/csspress/declaration.rb', line 89

def property
  @property
end

#valueObject (readonly)

:nodoc:



89
90
91
# File 'lib/csspress/declaration.rb', line 89

def value
  @value
end