Sha256: adb2da795e817db35c668eea3f39b4dfd155c76a048518202ecf57f8391026d8

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 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=true)
  code = TodoNext(text)
  if puts_code
    puts '---' ; puts code  ; puts '---'
  end
  eval code
end

def TodoNext(source)
  tree = TodoNext::Parser.parse(source)
  tree.to_rspec
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
todo_next-0.0.2 lib/todo_next.rb