Method: Gloo::Objs::Script#add_line
- Defined in:
- lib/gloo/objs/basic/script.rb
#add_line(line) ⇒ Object
Add a line (cmd) to the script.
46 47 48 49 50 51 52 53 54 55 |
# File 'lib/gloo/objs/basic/script.rb', line 46 def add_line( line ) if self.value_string? first = self.value self.set_array_value [] self.value << first unless first.empty? elsif self.value_is_blank? self.set_array_value [] end self.value << line.strip end |