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