Class: RSAC::Conditions::PseudoClassCondition
Instance Attribute Summary
#local_name, #specified, #value
Attributes inherited from Condition
#condition_type
Instance Method Summary
collapse
#==, build, #hash
Methods inherited from Condition
#==, #eql?, #hash
Constructor Details
Returns a new instance of PseudoClassCondition.
4
5
6
|
# File 'lib/antisamy/csspool/rsac/sac/conditions/pseudo_class_condition.rb', line 4
def initialize(pseudo_class)
super(nil, pseudo_class, false, :SAC_PSEUDO_CLASS_CONDITION)
end
|
Instance Method Details
#specificity ⇒ Object
15
16
17
|
# File 'lib/antisamy/csspool/rsac/sac/conditions/pseudo_class_condition.rb', line 15
def specificity
[0, 0, 0, 0]
end
|
#to_css ⇒ Object
8
9
10
|
# File 'lib/antisamy/csspool/rsac/sac/conditions/pseudo_class_condition.rb', line 8
def to_css
":#{value}"
end
|
#to_xpath ⇒ Object
12
13
|
# File 'lib/antisamy/csspool/rsac/sac/conditions/pseudo_class_condition.rb', line 12
def to_xpath
end
|