Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 19 lines (15 sloc) 0.376 kb
4af1799 Gabriel Horner some SCRIPT_LINES__ fun
authored
1 require 'ripl'
2
3 module Ripl::ScriptLines
4 def before_loop
5 Object.const_set :SCRIPT_LINES__ , {}
6 super
7 end
8
9 module Commands
10 def stats
11 puts "You have #{SCRIPT_LINES__.keys.size} files and " +
12 "#{SCRIPT_LINES__.values.flatten.size} lines"
13 end
14 end
15 end
16
17 Ripl::Shell.include Ripl::ScriptLines
18 Ripl::Commands.include Ripl::ScriptLines::Commands
Something went wrong with that request. Please try again.