Class: CSSPool::Selectors::Id

Inherits:
Additional show all
Defined in:
lib/csspool/selectors/id.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Visitable

#==, #accept, #children, #each, #hash, #to_css

Constructor Details

#initialize(name) ⇒ Id

Returns a new instance of Id.



6
7
8
# File 'lib/csspool/selectors/id.rb', line 6

def initialize name
  @name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/csspool/selectors/id.rb', line 4

def name
  @name
end