Class: Xmlss::Style::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/xmlss/style/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ Base

Returns a new instance of Base.

Raises:

  • (ArgumentError)


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

#idObject (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