Skip to content

A basic environment for writing and debugging raw Ruby

License

Notifications You must be signed in to change notification settings

jellyfish/basic-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basic-env

This is a basic environment for writing and debugging raw Ruby. It's meant to foster rapid experimentation, with the expectation that those changes will be discarded.

Included is irb, byebug, and minitest.

Also included is an example.rb and example_test.rb

Setup

  • Set up dependencies with bin/install

Debugging

  • Add debug breakpoints with byebug (must require "byebug")
  • Run an interactive ruby shell with irb in the terminal.
    • load a file in irb with irb -r ./path/to/ruby/file

Testing

  • require "minitest/autorun"
  • Inherit from Minitest::Test
  • Run tests with bin/test ./path/to/test.rb

About

A basic environment for writing and debugging raw Ruby

Topics

Resources

License

Stars

Watchers

Forks

Languages