Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class File
- def initialize(inode: nil, path: nil)
- @inode = inode
- @path = path
- end
- attr_reader :inode
- attr_reader :path
- def checkNode(inode)
- return @inode == inode
- end
- end
- class Files
- def initialize(dirPath)
- @dirPath = dirPath
- end
- attr_reader :dirPath
- end
- def splitDir(dirList)
- retArr = []
- dirArray = dirList.split(",")
- dirArray.each do |dir|
- retArr.push(Files.new(dir))
- end
- return retArr
- end
- Compilation error is:
- /CFiles.rb:3:in `initialize': wrong number of arguments (1 for 0) (ArgumentError)
- from /var/lib/gems/2.1.0/gems/parseconfig-1.0.6/lib/parseconfig.rb:56:in `open'
- from /var/lib/gems/2.1.0/gems/parseconfig-1.0.6/lib/parseconfig.rb:56:in `import_config'
- from /var/lib/gems/2.1.0/gems/parseconfig-1.0.6/lib/parseconfig.rb:38:in `initialize'
- from ./MMain.rb:7:in `new'
- from ./MMain.rb:7:in `<main>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement