Class: Xmlss::Style::Border

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Border

Returns a new instance of Border.



38
39
40
41
42
43
# File 'lib/xmlss/style/border.rb', line 38

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.



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

def color
  @color
end

Class Method Details

.writerObject



7
# File 'lib/xmlss/style/border.rb', line 7

def self.writer; :border; end