Class: CSSPool::Selectors::Type
- Defined in:
- lib/csspool/selectors/type.rb
Instance Attribute Summary collapse
-
#namespace ⇒ Object
Returns the value of attribute namespace.
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
-
#initialize(name, combinator = nil, namespace = nil) ⇒ Type
constructor
A new instance of Type.
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
#namespace ⇒ Object
Returns the value of attribute namespace.
5 6 7 |
# File 'lib/csspool/selectors/type.rb', line 5 def namespace @namespace end |