Class: CSS::SAC::LexicalUnit

Inherits:
Object
  • Object
show all
Defined in:
lib/css/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.



4
5
6
# File 'lib/css/sac/lexical_unit.rb', line 4

def dimension_unit_text
  @dimension_unit_text
end

#float_valueObject

Returns the value of attribute float_value.



4
5
6
# File 'lib/css/sac/lexical_unit.rb', line 4

def float_value
  @float_value
end

#function_nameObject

Returns the value of attribute function_name.



4
5
6
# File 'lib/css/sac/lexical_unit.rb', line 4

def function_name
  @function_name
end

#integer_valueObject

Returns the value of attribute integer_value.



4
5
6
# File 'lib/css/sac/lexical_unit.rb', line 4

def integer_value
  @integer_value
end

#lexical_unit_typeObject

Returns the value of attribute lexical_unit_type.



4
5
6
# File 'lib/css/sac/lexical_unit.rb', line 4

def lexical_unit_type
  @lexical_unit_type
end

#parametersObject

Returns the value of attribute parameters.



4
5
6
# File 'lib/css/sac/lexical_unit.rb', line 4

def parameters
  @parameters
end

#string_valueObject Also known as: to_s

Returns the value of attribute string_value.



4
5
6
# File 'lib/css/sac/lexical_unit.rb', line 4

def string_value
  @string_value
end

Instance Method Details

#==(other) ⇒ Object



12
13
14
# File 'lib/css/sac/lexical_unit.rb', line 12

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

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/css/sac/lexical_unit.rb', line 16

def eql?(other)
  self == other
end