Module: James

Extended by:
James
Included in:
James
Defined in:
lib/james-bond.rb,
lib/james/config.rb,
lib/james/reloader.rb

Defined Under Namespace

Classes: Bond, Config, Reloader

Instance Method Summary collapse

Instance Method Details

#config(&block) ⇒ Object



23
24
25
26
27
# File 'lib/james-bond.rb', line 23

def config(&block)
  @config ||= Config.new
  @config.instance_eval(&block) if block
  return @config
end

#run(file) ⇒ Object



17
18
19
20
21
# File 'lib/james-bond.rb', line 17

def run(file)
  Main.app_file = file
  Reloader.reload!
  Main.run! if Main.run?
end

#say(*args) ⇒ Object



29
# File 'lib/james-bond.rb', line 29

def say(*args) shell.say(*args) end

#say_status(*args) ⇒ Object



30
# File 'lib/james-bond.rb', line 30

def say_status(*args) shell.say_status(*args) end