Sha256: 3707a8ef45f308e73201d3c1159225032ff3f0d22581968cf0531979321cb167
Contents?: true
Size: 775 Bytes
Versions: 12
Compression:
Stored size: 775 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'bundler/setup' require 'fusuma' # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. # (If you use this, don't forget to add pry to your Gemfile!) def reload!(print = true) puts 'Reloading ...' if print # Main project directory. root_dir = File.expand_path('..', __dir__) # Directories within the project that should be reloaded. reload_dirs = %w[lib] # Loop through and reload every file in all relevant project directories. reload_dirs.each do |dir| Dir.glob("#{root_dir}/#{dir}/**/*.rb").each { |f| load(f) } end # Return true when complete. true end require "irb" IRB.start(__FILE__)
Version data entries
12 entries across 12 versions & 1 rubygems