Class: Spec::Rails::Example::HelperExampleGroup::HelperObject
- Inherits:
-
ActionView::Base
- Object
- ActionView::Base
- Spec::Rails::Example::HelperExampleGroup::HelperObject
- Defined in:
- lib/spec/rails/example/helper_example_group.rb
Instance Attribute Summary collapse
-
#controller ⇒ Object
writeonly
Sets the attribute controller.
-
#flash ⇒ Object
writeonly
Sets the attribute flash.
-
#params ⇒ Object
writeonly
Sets the attribute params.
-
#request ⇒ Object
writeonly
Sets the attribute request.
-
#session ⇒ Object
writeonly
Sets the attribute session.
Instance Method Summary collapse
-
#initialize(*args) ⇒ HelperObject
constructor
A new instance of HelperObject.
- #protect_against_forgery? ⇒ Boolean
Methods inherited from ActionView::Base
#render_partial_with_base_view_path_handling, #render_with_mock_proxy
Methods included from RenderObserver
#register_verify_after_each, #render_proxy, #should_not_receive, #should_receive, #stub, #stub!, #unregister_verify_after_each, #verify_rendered, #verify_rendered_proc
Constructor Details
#initialize(*args) ⇒ HelperObject
Returns a new instance of HelperObject.
37 38 39 40 |
# File 'lib/spec/rails/example/helper_example_group.rb', line 37 def initialize(*args) @template = self super end |
Instance Attribute Details
#controller=(value) ⇒ Object
Sets the attribute controller
45 46 47 |
# File 'lib/spec/rails/example/helper_example_group.rb', line 45 def controller=(value) @controller = value end |
#flash=(value) ⇒ Object
Sets the attribute flash
45 46 47 |
# File 'lib/spec/rails/example/helper_example_group.rb', line 45 def flash=(value) @flash = value end |
#params=(value) ⇒ Object
Sets the attribute params
45 46 47 |
# File 'lib/spec/rails/example/helper_example_group.rb', line 45 def params=(value) @params = value end |
#request=(value) ⇒ Object
Sets the attribute request
45 46 47 |
# File 'lib/spec/rails/example/helper_example_group.rb', line 45 def request=(value) @request = value end |
#session=(value) ⇒ Object
Sets the attribute session
45 46 47 |
# File 'lib/spec/rails/example/helper_example_group.rb', line 45 def session=(value) @session = value end |
Instance Method Details
#protect_against_forgery? ⇒ Boolean
41 42 43 |
# File 'lib/spec/rails/example/helper_example_group.rb', line 41 def protect_against_forgery? false end |