Class: Xmlss::Style::Border
- Inherits:
-
Object
- Object
- Xmlss::Style::Border
- Includes:
- Enumeration
- Defined in:
- lib/xmlss/style/border.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Border
constructor
A new instance of Border.
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
#color ⇒ Object
Returns the value of attribute color.
36 37 38 |
# File 'lib/xmlss/style/border.rb', line 36 def color @color end |
Class Method Details
.writer ⇒ Object
7 |
# File 'lib/xmlss/style/border.rb', line 7 def self.writer; :border; end |