Class: RSAC::LexicalString

Inherits:
LexicalUnit show all
Defined in:
lib/antisamy/csspool/rsac/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) ⇒ LexicalString

Returns a new instance of LexicalString.



83
84
85
86
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 83

def initialize(value)
  self.string_value = value
  self.lexical_unit_type = :SAC_STRING_VALUE
end

Instance Method Details

#==(other) ⇒ Object



88
89
90
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 88

def ==(other)
  super && self.string_value == other.string_value
end

#hashObject



92
93
94
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 92

def hash
  self.string_value.hash
end