Class: CSS::SAC::LexicalIdent

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

Methods inherited from LexicalUnit

#eql?

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

#hashObject



108
109
110
# File 'lib/css/sac/lexical_unit.rb', line 108

def hash
  self.string_value.hash
end