Class: Xmlss::Style::Alignment

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#rotateObject

Returns the value of attribute rotate.



22
23
24
# File 'lib/xmlss/style/alignment.rb', line 22

def rotate
  @rotate
end

#wrap_textObject

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

.writerObject



6
# File 'lib/xmlss/style/alignment.rb', line 6

def self.writer; :alignment; end

Instance Method Details

#wrap_text?Boolean

Returns:

  • (Boolean)


31
# File 'lib/xmlss/style/alignment.rb', line 31

def wrap_text?; !!self.wrap_text; end