Class: Pakyow::Reflection::Action Private
- Inherits:
-
Object
- Object
- Pakyow::Reflection::Action
- Defined in:
- lib/pakyow/reflection/action.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #attributes ⇒ Object readonly private
- #binding ⇒ Object readonly private
- #name ⇒ Object readonly private
- #nested ⇒ Object readonly private
- #node ⇒ Object readonly private
- #parents ⇒ Object readonly private
- #scope ⇒ Object readonly private
- #view_path ⇒ Object readonly private
Instance Method Summary collapse
- #cleanup ⇒ Object private
-
#initialize(name:, scope:, node:, view_path:, binding: nil, attributes: [], nested: [], parents: []) ⇒ Action
constructor
private
A new instance of Action.
- #named?(name) ⇒ Boolean private
Constructor Details
#initialize(name:, scope:, node:, view_path:, binding: nil, attributes: [], nested: [], parents: []) ⇒ Action
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Action.
11 12 13 |
# File 'lib/pakyow/reflection/action.rb', line 11 def initialize(name:, scope:, node:, view_path:, binding: nil, attributes: [], nested: [], parents: []) @name, @scope, @node, @view_path, @binding, @attributes, @nested, @parents = normalize(name), scope, node, view_path, binding, attributes, nested, parents end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/pakyow/reflection/action.rb', line 9 def attributes @attributes end |
#binding ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/pakyow/reflection/action.rb', line 9 def binding @binding end |
#name ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/pakyow/reflection/action.rb', line 9 def name @name end |
#nested ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/pakyow/reflection/action.rb', line 9 def nested @nested end |
#node ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/pakyow/reflection/action.rb', line 9 def node @node end |
#parents ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/pakyow/reflection/action.rb', line 9 def parents @parents end |
#scope ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/pakyow/reflection/action.rb', line 9 def scope @scope end |
#view_path ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/pakyow/reflection/action.rb', line 9 def view_path @view_path end |
Instance Method Details
#cleanup ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'lib/pakyow/reflection/action.rb', line 19 def cleanup @node = nil end |
#named?(name) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/pakyow/reflection/action.rb', line 15 def named?(name) @name == normalize(name) end |