Module: XRay::Context
- Included in:
- XRay::CSS::Rule::CheckListRule, DefaultContext, HTML::Rule::CheckTagRule
- Defined in:
- lib/context.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Method Summary collapse
Instance Attribute Details
#scope ⇒ Object
Returns the value of attribute scope.
5 6 7 |
# File 'lib/context.rb', line 5 def scope @scope end |
Instance Method Details
#in_page? ⇒ Boolean
15 16 17 |
# File 'lib/context.rb', line 15 def in_page? scope == :in_page end |
#lib? ⇒ Boolean
7 8 9 |
# File 'lib/context.rb', line 7 def lib? scope == :lib end |
#page_level? ⇒ Boolean
11 12 13 |
# File 'lib/context.rb', line 11 def page_level? scope == :page end |