Method: Xmlss::Style::Border#initialize
- Defined in:
- lib/xmlss/style/border.rb
#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 |