Method: Temple::Utils#empty_exp?
- Defined in:
- lib/temple/utils.rb
#empty_exp?(exp) ⇒ Boolean
Check if expression is empty
66 67 68 69 70 71 72 73 74 75 |
# File 'lib/temple/utils.rb', line 66 def empty_exp?(exp) case exp[0] when :multi exp[1..-1].all? {|e| empty_exp?(e) } when :newline true else false end end |