Sha256: ea2cb9380fd21314c627240b56b9c61ec4d61f8ff9381ded4c5dc626707eab03

Contents?: true

Size: 346 Bytes

Versions: 5

Compression:

Stored size: 346 Bytes

Contents

require "to_source/version"
require "to_source/core_ext/node"
require "to_source/visitor"

module ToSource
  # Public: Converts the node back to its original source code.
  #
  # Returns the String output.
  def to_source
    visitor = Visitor.new
    lazy_visit(visitor)
    visitor.output
  end
end

Rubinius::AST::Node.send :include, ToSource

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
to_source-0.1.3 lib/to_source.rb
to_source-0.1.2 lib/to_source.rb
to_source-0.1.1 lib/to_source.rb
to_source-0.1.0 lib/to_source.rb
to_source-0.0.1 lib/to_source.rb