-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static Undefined Method #22
Comments
I see, that it works if static is called after the definition. Maybe I was just using this feature incorrectly. |
That’s correct; the method does have to be defined before you can invoke I’m actively writing documentation for Fortitude these days, and this will definitely be one of the things I will include in it. (In fact, I’m just impressed you got that feature working at all with no documentation whatsoever!) |
Reopening this until I can improve it, at least a little. At bare minimum, I could add more detail to the error message saying that |
The static method only seems to work if a super class defines it.
For example,
Views:: Base
def main
end
Views::Layouts::Page < Views::Base
static :main
static :intro
def main
end
def intro
end
This will result in undefined method `intro'
The text was updated successfully, but these errors were encountered: