Ruby Online Formatter

    Code

    How to use Ruby Online Formatter

    Four easy step:

    1. Copy paste your Ruby code to the code editor.
    2. Click the 'Formatter' button to format the editor code.
    3. The output will be displayed in the code editor.
    4. You can click 'Copy' button to copy your formatted Ruby code.

    You can click on the default unformatted code above to see the effect.

    What is ruby formatter?

    Ruby formmatter is beautify your minified ruby code, this make your ruby code more readable.

    It also makes it easier for developers to read other developers codes as well. 

    Ruby Online Formatter example

    Before

    def example_method  arg1,arg2
    result=arg1+arg2
    puts "The result is #{result}"
    end
    Formatter code

    def example_method(arg1, arg2)
      result = arg1 + arg2
      puts "The result is #{result}"
    end