Class: Prattle::Lobby
- Inherits:
-
Object
- Object
- Prattle::Lobby
- Defined in:
- lib/prattle/evaluator.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) import(str)
23 24 25 |
# File 'lib/prattle/evaluator.rb', line 23 def import(str) require str end |
- (Object) new_class(str)
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 |
- (Object) print(str)
3 4 5 |
# File 'lib/prattle/evaluator.rb', line 3 def print(str) Kernel.puts(str) end |
- (Object) show(obj)
9 10 11 |
# File 'lib/prattle/evaluator.rb', line 9 def show(obj) p obj end |