Guest User

Untitled

a guest
Jan 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #Se você baixou o código no github execute o irb na pasta raíz do projeto(CocGenExample).
  2. #Se você está tentando fazer seu mini projeto a base desses códigos coloque os dois arquivos
  3. #em pastas separadas(folder1 e folder2) e execute o Irb na raíz do projeto para que você não
  4. #tenha problemas com o require do ruby.
  5. #IRB
  6.  
  7. ruby-1.9.2-p0 > require './folder1/investigator.rb'
  8. ruby-1.9.2-p0 > investigator = Investigator.new
  9. ruby-1.9.2-p0 > investigator.public_methods(false)
  10. => [:name, :name, :sex, :sex, :occupation, :occupation, :str, :str, :dex, :dex, :int, :int, :con, :con, :app, :app, :pow, :pow, :siz, :siz, :san, :san, :edu, :edu, :idea, :idea, :luck, :luck, :know, :know, :health, :health, :magic, :magic, :print_primary_attributes, :print_secondary_attributes, :print_basic_info]
  11. ruby-1.9.2-p0 > require './folder2/investigator.rb'
Add Comment
Please, Sign In to add comment