Project

rubyx

0.0
No commit activity in last 3 years
No release in over 3 years
A tool to run a Ruby script while showing the executed lines of code.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
~> 10.0
 Project Readme

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.