Class: Xmlss::Style::Base
- Inherits:
-
Object
- Object
- Xmlss::Style::Base
- Defined in:
- lib/xmlss/style/base.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
(also: #i_d)
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(id) ⇒ Base
Returns a new instance of Base.
18 19 20 21 |
# File 'lib/xmlss/style/base.rb', line 18 def initialize(id) raise ArgumentError, "please choose an id for the style" if id.nil? @id = id.to_s end |
Instance Attribute Details
#id ⇒ Object (readonly) Also known as: i_d
Returns the value of attribute id.
15 16 17 |
# File 'lib/xmlss/style/base.rb', line 15 def id @id end |