Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 23b979719c
Fetching contributors…

Cannot retrieve contributors at this time

file 11 lines (11 sloc) 0.241 kb
1 2 3 4 5 6 7 8 9 10 11
module Poison
  class Treetop::Runtime::SyntaxNode
    def node
      return unless elements
      all = elements.map { |e| e.node if e }.compact
      return if all.empty?
      return all.first if all.size == 1
      all
    end
  end
end
Something went wrong with that request. Please try again.