Class: RSAC::LexicalUnit

Inherits:
Object
  • Object
show all
Defined in:
lib/antisamy/csspool/rsac/sac/lexical_unit.rb

Direct Known Subclasses

Color, Function, LexicalIdent, LexicalString, LexicalURI, Number

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dimension_unit_textObject

Returns the value of attribute dimension_unit_text.



3
4
5
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 3

def dimension_unit_text
  @dimension_unit_text
end

#float_valueObject

Returns the value of attribute float_value.



3
4
5
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 3

def float_value
  @float_value
end

#function_nameObject

Returns the value of attribute function_name.



3
4
5
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 3

def function_name
  @function_name
end

#integer_valueObject

Returns the value of attribute integer_value.



3
4
5
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 3

def integer_value
  @integer_value
end

#lexical_unit_typeObject

Returns the value of attribute lexical_unit_type.



3
4
5
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 3

def lexical_unit_type
  @lexical_unit_type
end

#parametersObject

Returns the value of attribute parameters.



3
4
5
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 3

def parameters
  @parameters
end

#string_valueObject Also known as: to_s

Returns the value of attribute string_value.



3
4
5
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 3

def string_value
  @string_value
end

Instance Method Details

#==(other) ⇒ Object



11
12
13
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 11

def ==(other)
  self.class === other && self.lexical_unit_type == other.lexical_unit_type
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 15

def eql?(other)
  self == other
end