K
Krishna Rokhale
Hi,
this seems to be bugging me for a bit now.
I am creating a gem with tool.rb in the /lib folder
module Tool
require 'tool/word.rb'
require 'tool/sentence.rb'
end
and the word.rb is
class Tool::Word
def methods........
end
and sentence.rb is
class Tool::Sentence
def methods.......
end
and i am using irb
NameError: undefined local variable or method `tool' for main:Object
from (irb):1
I am not sure how to include the files!
I appreciate your help.
Thanks!
this seems to be bugging me for a bit now.
I am creating a gem with tool.rb in the /lib folder
module Tool
require 'tool/word.rb'
require 'tool/sentence.rb'
end
and the word.rb is
class Tool::Word
def methods........
end
and sentence.rb is
class Tool::Sentence
def methods.......
end
and i am using irb
NameError: undefined local variable or method `tool' for main:Object
from (irb):1
I am not sure how to include the files!
I appreciate your help.
Thanks!