class Cucumber::CucumberExpressions::Node
def to_hash
def to_hash hash = Hash.new hash["type"] = @type unless @nodes.nil? hash["nodes"] = @nodes.map { |node| node.to_hash } end unless @token.nil? hash["token"] = @token end hash["start"] = @start hash["end"] = @end hash end