Top Level Namespace

Class Method Summary collapse

Class Method Details

.l(*args) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/birb.rb', line 7

def l(*args)
  args.each do |file|
    file = file.to_s
    file += '.rb' unless file.end_with?('.rb')
    load_file(file)
  end
end

.load_file(file) ⇒ Object



15
16
17
18
19
20
# File 'lib/birb.rb', line 15

def load_file(file)
  load file
  @loaded_files ||= [] 
  @loaded_files.delete(file)
  @loaded_files << file
end

.r(*args) ⇒ Object



3
4
5
# File 'lib/birb.rb', line 3

def r(*args)
  args.each { |file| require file.to_s }
end

.rlObject



22
23
24
# File 'lib/birb.rb', line 22

def rl
  l *@loaded_files if @loaded_files
end