Class: CSSPool::CSS::NamespaceRule
- Defined in:
- lib/csspool/css/namespace_rule.rb
Instance Attribute Summary collapse
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#uri ⇒ Object
Returns the value of attribute uri.
Attributes inherited from Node
#inner_end_pos, #inner_start_pos, #outer_end_pos, #outer_start_pos
Instance Method Summary collapse
-
#initialize(prefix, uri) ⇒ NamespaceRule
constructor
A new instance of NamespaceRule.
Methods inherited from Node
#==, #accept, #children, #each, #hash, #to_css, #to_minified_css
Constructor Details
#initialize(prefix, uri) ⇒ NamespaceRule
Returns a new instance of NamespaceRule.
7 8 9 10 |
# File 'lib/csspool/css/namespace_rule.rb', line 7 def initialize prefix, uri @prefix = prefix @uri = uri end |
Instance Attribute Details
#prefix ⇒ Object
Returns the value of attribute prefix.
4 5 6 |
# File 'lib/csspool/css/namespace_rule.rb', line 4 def prefix @prefix end |
#uri ⇒ Object
Returns the value of attribute uri.
5 6 7 |
# File 'lib/csspool/css/namespace_rule.rb', line 5 def uri @uri end |