Class: Habaki::SupportsRule
- Defined in:
- lib/habaki/supports_rule.rb
Overview
supports rule @supports
Instance Attribute Summary collapse
Attributes inherited from Rule
Instance Method Summary collapse
-
#initialize ⇒ SupportsRule
constructor
A new instance of SupportsRule.
- #read_from_katana(rule) ⇒ void private
- #string(format = Formatter::Base.new) ⇒ String
Methods inherited from Rule
#declarations, #each_declaration, #each_selector, #element_match?, #selectors
Methods inherited from Node
Constructor Details
#initialize ⇒ SupportsRule
Returns a new instance of SupportsRule.
48 49 50 |
# File 'lib/habaki/supports_rule.rb', line 48 def initialize @rules = Rules.new end |
Instance Attribute Details
#expression ⇒ SupportsExpression
44 45 46 |
# File 'lib/habaki/supports_rule.rb', line 44 def expression @expression end |
Instance Method Details
#read_from_katana(rule) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
60 61 62 63 |
# File 'lib/habaki/supports_rule.rb', line 60 def read_from_katana(rule) @expression = SupportsExpression.read_from_katana(rule.expression) @rules = Rules.read_from_katana(rule.rules) end |