Class: RSAC::LexicalUnit
- Inherits:
-
Object
- Object
- RSAC::LexicalUnit
- Defined in:
- lib/antisamy/csspool/rsac/sac/lexical_unit.rb
Direct Known Subclasses
Color, Function, LexicalIdent, LexicalString, LexicalURI, Number
Instance Attribute Summary collapse
-
#dimension_unit_text ⇒ Object
Returns the value of attribute dimension_unit_text.
-
#float_value ⇒ Object
Returns the value of attribute float_value.
-
#function_name ⇒ Object
Returns the value of attribute function_name.
-
#integer_value ⇒ Object
Returns the value of attribute integer_value.
-
#lexical_unit_type ⇒ Object
Returns the value of attribute lexical_unit_type.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#string_value ⇒ Object
(also: #to_s)
Returns the value of attribute string_value.
Instance Method Summary collapse
Instance Attribute Details
#dimension_unit_text ⇒ Object
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_value ⇒ Object
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_name ⇒ Object
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_value ⇒ Object
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_type ⇒ Object
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 |
#parameters ⇒ Object
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_value ⇒ Object 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
15 16 17 |
# File 'lib/antisamy/csspool/rsac/sac/lexical_unit.rb', line 15 def eql?(other) self == other end |