danieldevries / literate-ruby

A basic implementation of Literate Programming in Ruby.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Literate Ruby

A basic implementation of Literate Programming in Ruby. Currently it only runs your code.

How to use

You can use indentation:

    def hello(name)
        "Hello, #{name}!"
    end

    puts hello("Daniël")

or greater than sign:

> def bye(name)
>   "Bye, #{name}!"
> end
> puts bye("Daniël")

Then save the literate file and run it on the command line:

./literate-ruby demo.lrb

About

A basic implementation of Literate Programming in Ruby.

License:MIT License


Languages

Language:Ruby 100.0%