Class: RGhost::Text
- Defined in:
- lib/rghost/text.rb
Overview
Instance Attribute Summary collapse
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
Instance Method Summary collapse
-
#initialize(text, tag_parse = true) ⇒ Text
constructor
A new instance of Text.
- #ps ⇒ Object
Methods included from ParseText
Methods included from RubyToPs
#array_to_stack, #hash_to_array, #pack_string, #ps_escape, #string_eval, #to_array, #to_bool, #to_string, #to_string_array
Methods inherited from PsObject
#<<, #call, #graphic_scope, #raw, #set, #to_s
Constructor Details
#initialize(text, tag_parse = true) ⇒ Text
Returns a new instance of Text.
29 30 31 32 33 34 |
# File 'lib/rghost/text.rb', line 29 def initialize(text,tag_parse=true) super("") @text=text @tag_parse=tag_parse @options={:text_align => :left} end |
Instance Attribute Details
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
27 28 29 |
# File 'lib/rghost/text.rb', line 27 def rows @rows end |
Instance Method Details
#ps ⇒ Object
36 37 38 |
# File 'lib/rghost/text.rb', line 36 def ps text_to_ps #from RGhost::ParseText end |