Class: CSSPool::Selectors::Attribute

Inherits:
Additional show all
Defined in:
lib/csspool/selectors/attribute.rb

Constant Summary collapse

NO_MATCH =
0
SET =
1
EQUALS =
2
INCLUDES =
3
DASHMATCH =
4

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

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

Constructor Details

#initialize(name, value, match_way) ⇒ Attribute

Returns a new instance of Attribute.



14
15
16
17
18
# File 'lib/csspool/selectors/attribute.rb', line 14

def initialize name, value, match_way
  @name = name
  @value = value
  @match_way = match_way
end

Instance Attribute Details

#match_wayObject

Returns the value of attribute match_way.



6
7
8
# File 'lib/csspool/selectors/attribute.rb', line 6

def match_way
  @match_way
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/csspool/selectors/attribute.rb', line 4

def name
  @name
end

#valueObject

Returns the value of attribute value.



5
6
7
# File 'lib/csspool/selectors/attribute.rb', line 5

def value
  @value
end