Class: CSSPool::CSS::NamespaceRule

Inherits:
Node
  • Object
show all
Defined in:
lib/csspool/css/namespace_rule.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#inner_end_pos, #inner_start_pos, #outer_end_pos, #outer_start_pos

Instance Method Summary collapse

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

#prefixObject

Returns the value of attribute prefix.



4
5
6
# File 'lib/csspool/css/namespace_rule.rb', line 4

def prefix
  @prefix
end

#uriObject

Returns the value of attribute uri.



5
6
7
# File 'lib/csspool/css/namespace_rule.rb', line 5

def uri
  @uri
end