Method: WindowTerminal::Text#initialize
- Defined in:
- lib/accu-window.rb
#initialize(orientation, text, y) ⇒ Text
Initializes a Text object.
86 87 88 89 90 91 92 |
# File 'lib/accu-window.rb', line 86 def initialize(orientation,text,y) raise "Orientation must be passed!" if not orientation.is_a? Orientation raise "String must be passed!" if not text.is_a? String @orientation = orientation @text = text @y = y end |