Class: Xmlss::Style::Border

Inherits:
Object
  • Object
show all
Includes:
Enumeration
Defined in:
lib/xmlss/style/border.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Border

Returns a new instance of Border.



35
36
37
38
39
40
# File 'lib/xmlss/style/border.rb', line 35

def initialize(attrs={})
  self.color = attrs[:color]
  self.position = attrs[:position]
  self.weight = attrs[:weight] || :thin
  self.line_style = attrs[:line_style] || :continuous
end

Instance Attribute Details

#colorObject

Returns the value of attribute color.



33
34
35
# File 'lib/xmlss/style/border.rb', line 33

def color
  @color
end