Class: XRay::CSS::Rule::CheckListRule
- Inherits:
-
Object
- Object
- XRay::CSS::Rule::CheckListRule
- Includes:
- XRay::Context, Rule
- Defined in:
- lib/css/rule/checklist.rb
Constant Summary
Constants included from Rule
Rule::KEYWORDS, Rule::RULE_PATH, Rule::STYLE_TYPES
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Attributes included from XRay::Context
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CheckListRule
constructor
A new instance of CheckListRule.
- #visit_declaration(dec) ⇒ Object
- #visit_property(property) ⇒ Object
- #visit_ruleset(ruleset) ⇒ Object
- #visit_simple_selector(selector) ⇒ Object
- #visit_value(value) ⇒ Object
Methods included from Rule
#add_common_rule, #clear_all_rules, #cmd_name, #common, #context, #do_check, #import, import_all, #import_all, #imported, #imported?, #method_missing, methods_to_keywords, #syntax
Methods included from XRay::Context
#in_page?, #lib?, #page_level?
Constructor Details
#initialize(options = {}) ⇒ CheckListRule
Returns a new instance of CheckListRule.
16 17 18 |
# File 'lib/css/rule/checklist.rb', line 16 def initialize( = {}) = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class XRay::Rule
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
12 13 14 |
# File 'lib/css/rule/checklist.rb', line 12 def end |
Instance Method Details
#visit_declaration(dec) ⇒ Object
24 25 26 |
# File 'lib/css/rule/checklist.rb', line 24 def visit_declaration(dec) check_declaration dec end |
#visit_property(property) ⇒ Object
32 33 34 |
# File 'lib/css/rule/checklist.rb', line 32 def visit_property(property) check_css_property property end |
#visit_ruleset(ruleset) ⇒ Object
28 29 30 |
# File 'lib/css/rule/checklist.rb', line 28 def visit_ruleset(ruleset) check_css_ruleset ruleset end |
#visit_simple_selector(selector) ⇒ Object
20 21 22 |
# File 'lib/css/rule/checklist.rb', line 20 def visit_simple_selector(selector) check_css_selector selector end |
#visit_value(value) ⇒ Object
36 37 38 |
# File 'lib/css/rule/checklist.rb', line 36 def visit_value(value) check_css_value value end |