Method: Gloo::Objs::Script#line_count
- Defined in:
- lib/gloo/objs/basic/script.rb
#line_count ⇒ Object
Get the number of lines in this script.
68 69 70 71 72 73 74 75 76 |
# File 'lib/gloo/objs/basic/script.rb', line 68 def line_count return self.value.count if self.value_is_array? if self.value_string? return self.value.strip.empty? ? 0 : 1 end return 0 end |