Skip to content

Instantly share code, notes, and snippets.

@mwhagedorn
Created April 10, 2014 21:03
example of rolliing up parent ivars with self
def self.requests
if @required
superclass.requests + (@requests || [])
else
@requests || []
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment