module RakeTasks::Console
Public Instance Methods
lib_name()
click to toggle source
# File lib/rake_tasks/console.rb, line 10 def lib_name return @lib_name if defined?(@lib_name) lib = File.basename(System.pwd) file = "lib/#{lib}.rb" @lib_name = lib if System.file?(file) @lib_name ||= nil end
run()
click to toggle source
# File lib/rake_tasks/console.rb, line 6 def run System.system "bundle exec irb -Ilib -r#{lib_name}" end
set_lib(lib)
click to toggle source
# File lib/rake_tasks/console.rb, line 21 def set_lib(lib) @lib_name = lib end