Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Se você baixou o código no github execute o irb na pasta raíz do projeto(CocGenExample).
- #Se você está tentando fazer seu mini projeto a base desses códigos coloque os dois arquivos
- #em pastas separadas(folder1 e folder2) e execute o Irb na raíz do projeto para que você não
- #tenha problemas com o require do ruby.
- #IRB
- ruby-1.9.2-p0 > require './folder1/investigator.rb'
- ruby-1.9.2-p0 > investigator = Investigator.new
- ruby-1.9.2-p0 > investigator.public_methods(false)
- => [: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]
- ruby-1.9.2-p0 > require './folder2/investigator.rb'
Add Comment
Please, Sign In to add comment