Skip to content

hilbert-space/rubyx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rubyx Gem Version

A tool to run a Ruby script while showing the executed lines of code.

Installation

$ gem install rubyx

Usage

$ rubyx -h
Usage: rubyx [options] <file> -- [arguments]

Options:
    -i PREFIX            Set prefix for source code (default: "")
    -o PREFIX            Set prefix for standard output (default: "# => ")
    -h                   Show this message

Example

$ rubyx input.rb > output.rb

In input.rb:

def say
  puts 'Hello!'
end

say

puts 'Bye!'

In output.rb:

def say
  puts 'Hello!'
end

say
# => Hello!

puts 'Bye!'
# => Bye!

Contributing

  1. Fork the project.
  2. Create a branch for your feature (git checkout -b awesome-feature).
  3. Implement your feature (vim).
  4. Commit your changes (git commit -am 'Implemented an awesome feature').
  5. Push to the branch (git push origin awesome-feature).
  6. Create a new Pull Request.

About

Tool to run a Ruby script while showing the executed lines of code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages