lib/opal/nodes/x_string.rb
# Check if there's only one child or if they're all part of
# the same line (e.g. because of interpolations)
Check if there's only one child or if they're all part of
the same line
Check if there ' s only one child or if they ' re all part of the same line
def single_line?(children)
        (children.size == 1) || children.none? do |c|
          c.type == :str && c.loc.expression.source.end_with?("\n")
        end
      end
def single_line? ( children ) ( children . size == 1 ) || children . none? do | c | c . type == :str && c . loc . expression . source . end_with? ( "\n" ) end end
Check if there's only one child or if they're all part of
the same line (e.g.
Check if there ' s only one child or if they ' re all part of the same line ( e . g .
children
<not_specific>