Class: CSSPool::Terms::Ident

Inherits:
Node
  • Object
show all
Defined in:
lib/csspool/terms/ident.rb

Direct Known Subclasses

Hash, Number, String, URI

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Visitable

#==, #accept, #children, #each, #hash, #to_css

Constructor Details

#initialize(value, operator, parse_location) ⇒ Ident

Returns a new instance of Ident.



8
9
10
11
12
# File 'lib/csspool/terms/ident.rb', line 8

def initialize value, operator, parse_location
  @value = value
  @operator = operator
  @parse_location = parse_location
end

Instance Attribute Details

#operatorObject

Returns the value of attribute operator.



5
6
7
# File 'lib/csspool/terms/ident.rb', line 5

def operator
  @operator
end

#parse_locationObject

Returns the value of attribute parse_location.



6
7
8
# File 'lib/csspool/terms/ident.rb', line 6

def parse_location
  @parse_location
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/csspool/terms/ident.rb', line 4

def value
  @value
end