Class: CSSPool::Selectors::Id
- Inherits:
-
Additional
- Object
- Node
- Additional
- CSSPool::Selectors::Id
- Defined in:
- lib/csspool/selectors/id.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Id
constructor
A new instance of Id.
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
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/csspool/selectors/id.rb', line 4 def name @name end |