Class: Prattle::Lobby

Inherits:
Object
  • Object
show all
Defined in:
lib/prattle/evaluator.rb

Instance Method Summary collapse

Instance Method Details

#import(str) ⇒ Object



23
24
25
# File 'lib/prattle/evaluator.rb', line 23

def import(str)
  require str
end

#new_class(str) ⇒ Object



15
16
17
18
19
# File 'lib/prattle/evaluator.rb', line 15

def new_class(str)
  Object.const_set str, Class.new

  puts "Created class #{str}"
end


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

def print(str)
  Kernel.puts(str)
end

#show(obj) ⇒ Object



9
10
11
# File 'lib/prattle/evaluator.rb', line 9

def show(obj)
  p obj
end