Method: Gloo::Objs::Json#line_count
- Defined in:
- lib/gloo/objs/web/json.rb
#line_count ⇒ Object
Get the number of lines of text.
47 48 49 |
# File 'lib/gloo/objs/web/json.rb', line 47 def line_count return value.split( "\n" ).count end |