13. And tell me boy, what‘s wrong
with my @ivars
My name‘s Guybrush threepwood. I‘m new in town
Matz told me their only for Object‘s internal state
Who‘s in charge here?
Nice talking to you.
15. When you design a class, you decide
what internal state it has and also
decide how that state is to appear on
the outside (to users of your class).
16. The internal state is held in instance
variables. The external state is
exposed through methods we‘re call-
ing attributes.
19. # Define some internal variables that
# should not be propagated to the view.
self.protected_instance_variables = [
:@_status, :@_headers, :@_params, :@_env,
:@_response, :@_request, :@_view_runtime,
:@_stream, :@_url_options, :@_action_has_layout
]
20. # Define some internal variables that
# should not be propagated to the view.
self.protected_instance_variables = [
:@_status, :@_headers, :@_params, :@_env,
:@_response, :@_request, :@_view_runtime,
:@_stream, :@_url_options, :@_action_has_layout
]
23. And tell me boy, what ya
doing about this?
I‘ll stick with "helper_method".
Give me some "decent_exposure"?
It‘s "obviews"!
I‘m made of rubber, you‘re made of glue.