Skip to content

Instantly share code, notes, and snippets.

@smsohan
Created May 31, 2012 22:04
Show Gist options
  • Save smsohan/2846631 to your computer and use it in GitHub Desktop.
Save smsohan/2846631 to your computer and use it in GitHub Desktop.
Is this valid?
#!/usr/bin/ruby
module Content
module Base
end
end
class Content
include Content::Base
end
@smsohan
Copy link
Author

smsohan commented May 31, 2012

I am seeing the following when I run this ruby file

Content is not a class (TypeError)

However, this same thing seems to work fine on a project, running under same Ruby version. My question is, is this valid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment