Sha256: 633101bf0f47f17475500f3f145b9301a91eefa957b7919c4d74dd900ad2d541

Contents?: true

Size: 485 Bytes

Versions: 1

Compression:

Stored size: 485 Bytes

Contents

require File.dirname(__FILE__) + '/todo_next/version'

module TodoNext
  # Your code goes here...
end
require File.dirname(__FILE__) + '/todo_next/parser'

main = TOPLEVEL_BINDING.eval('self')
def main.todo_next(text, puts_code=false)
  code = TodoNext(text)
  if puts_code
    puts '---' ; puts code  ; puts '---'
  end
  eval code
end

def TodoNext(source)
  TodoNext::Parser.
      parse(source).
      visit(TodoNext::RspecGeneratorVisitor.new).
      flatten.
      join("\n")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
todo_next-0.0.1 lib/todo_next.rb