Class: RGhost::Text

Inherits:
PsObject show all
Includes:
ParseText, RubyToPs
Defined in:
lib/rghost/text.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ParseText

#ta_entry, #text_to_ps

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

#rowsObject (readonly)

Returns the value of attribute rows.



27
28
29
# File 'lib/rghost/text.rb', line 27

def rows
  @rows
end

Instance Method Details

#psObject



36
37
38
# File 'lib/rghost/text.rb', line 36

def ps
  text_to_ps #from RGhost::ParseText
end