Class: Text2svg::Option
- Inherits:
-
Struct
- Object
- Struct
- Text2svg::Option
- Defined in:
- lib/text2svg/option.rb
Constant Summary collapse
- DEFAULTS =
[ nil, # font :left, # text_align Encoding::UTF_8, # encoding false, # bold false, # italic nil, # attribute "0,0,3000,3000", # char_size 1, ]
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#bold ⇒ Object
Returns the value of attribute bold.
-
#char_size ⇒ Object
Returns the value of attribute char_size.
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#font ⇒ Object
Returns the value of attribute font.
-
#italic ⇒ Object
Returns the value of attribute italic.
-
#scale ⇒ Object
Returns the value of attribute scale.
-
#text_align ⇒ Object
Returns the value of attribute text_align.
Class Method Summary collapse
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute
2 3 4 |
# File 'lib/text2svg/option.rb', line 2 def attribute @attribute end |
#bold ⇒ Object
Returns the value of attribute bold
2 3 4 |
# File 'lib/text2svg/option.rb', line 2 def bold @bold end |
#char_size ⇒ Object
Returns the value of attribute char_size
2 3 4 |
# File 'lib/text2svg/option.rb', line 2 def char_size @char_size end |
#encoding ⇒ Object
Returns the value of attribute encoding
2 3 4 |
# File 'lib/text2svg/option.rb', line 2 def encoding @encoding end |
#font ⇒ Object
Returns the value of attribute font
2 3 4 |
# File 'lib/text2svg/option.rb', line 2 def font @font end |
#italic ⇒ Object
Returns the value of attribute italic
2 3 4 |
# File 'lib/text2svg/option.rb', line 2 def italic @italic end |
#scale ⇒ Object
Returns the value of attribute scale
2 3 4 |
# File 'lib/text2svg/option.rb', line 2 def scale @scale end |
#text_align ⇒ Object
Returns the value of attribute text_align
2 3 4 |
# File 'lib/text2svg/option.rb', line 2 def text_align @text_align end |