Class: CSSPool::Selectors::Type

Inherits:
Simple show all
Defined in:
lib/csspool/selectors/type.rb

Instance Attribute Summary collapse

Attributes inherited from Simple

#additional_selectors, #combinator, #name, #parse_location

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(name, combinator = nil, namespace = nil) ⇒ Type

Returns a new instance of Type.



7
8
9
10
# File 'lib/csspool/selectors/type.rb', line 7

def initialize name, combinator = nil, namespace = nil
  super name, combinator
  @namespace = namespace
end

Instance Attribute Details

#namespaceObject

Returns the value of attribute namespace.



5
6
7
# File 'lib/csspool/selectors/type.rb', line 5

def namespace
  @namespace
end