Class: Xmlss::Style::Alignment
- Inherits:
-
Object
- Object
- Xmlss::Style::Alignment
- Includes:
- Enumeration
- Defined in:
- lib/xmlss/style/alignment.rb
Instance Attribute Summary collapse
-
#rotate ⇒ Object
Returns the value of attribute rotate.
-
#wrap_text ⇒ Object
Returns the value of attribute wrap_text.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Alignment
constructor
A new instance of Alignment.
- #wrap_text? ⇒ Boolean
Constructor Details
#initialize(attrs = {}) ⇒ Alignment
Returns a new instance of Alignment.
24 25 26 27 28 29 |
# File 'lib/xmlss/style/alignment.rb', line 24 def initialize(attrs={}) self.wrap_text = attrs[:wrap_text] || false self.rotate = attrs[:rotate] self.horizontal = attrs[:horizontal] self.vertical = attrs[:vertical] end |
Instance Attribute Details
#rotate ⇒ Object
Returns the value of attribute rotate.
22 23 24 |
# File 'lib/xmlss/style/alignment.rb', line 22 def rotate @rotate end |
#wrap_text ⇒ Object
Returns the value of attribute wrap_text.
22 23 24 |
# File 'lib/xmlss/style/alignment.rb', line 22 def wrap_text @wrap_text end |
Class Method Details
.writer ⇒ Object
6 |
# File 'lib/xmlss/style/alignment.rb', line 6 def self.writer; :alignment; end |
Instance Method Details
#wrap_text? ⇒ Boolean
31 |
# File 'lib/xmlss/style/alignment.rb', line 31 def wrap_text?; !!self.wrap_text; end |