I’m trying to declare a constant in one file and access it in another.
It doesn’t seem to be working.
Here’s my declaration (at the top of a file, remainder of file omitted
NUM_SECTIONS_TO_PARSE = 7
class UserDataFile < File
def self.parse_file(src_name, parse_progress)
(other stuff follows)
Here’s where i’m trying to access it:
parse_progress = Array.new(::NUM_SECTIONS_TO_PARSE, ::NOT_YET_PARSED)
it fails with the message: uninitialized constant
I’ve run into this problem several times before and always somehow
hacked my way around it, but I want to get it right this time. Any