Class: CSS::SAC::LexicalIdent
- Inherits:
-
LexicalUnit
- Object
- LexicalUnit
- CSS::SAC::LexicalIdent
- Defined in:
- lib/css/sac/lexical_unit.rb
Instance Attribute Summary
Attributes inherited from LexicalUnit
#dimension_unit_text, #float_value, #function_name, #integer_value, #lexical_unit_type, #parameters, #string_value
Instance Method Summary collapse
- #==(other) ⇒ Object
- #hash ⇒ Object
-
#initialize(value) ⇒ LexicalIdent
constructor
A new instance of LexicalIdent.
Methods inherited from LexicalUnit
Constructor Details
#initialize(value) ⇒ LexicalIdent
Returns a new instance of LexicalIdent.
99 100 101 102 |
# File 'lib/css/sac/lexical_unit.rb', line 99 def initialize(value) self.string_value = value self.lexical_unit_type = :SAC_IDENT end |
Instance Method Details
#==(other) ⇒ Object
104 105 106 |
# File 'lib/css/sac/lexical_unit.rb', line 104 def ==(other) super && self.string_value == other.string_value end |
#hash ⇒ Object
108 109 110 |
# File 'lib/css/sac/lexical_unit.rb', line 108 def hash self.string_value.hash end |