Class: RSAC::LexicalIdent
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
98
99
100
101
|
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 98
def initialize(value)
self.string_value = value
self.lexical_unit_type = :SAC_IDENT
end
|
Instance Method Details
#==(other) ⇒ Object
103
104
105
|
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 103
def ==(other)
super && self.string_value == other.string_value
end
|
#hash ⇒ Object
107
108
109
|
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 107
def hash
self.string_value.hash
end
|