Class: Pakyow::Reflection::Action Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#attributesObject (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

#bindingObject (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

#nameObject (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

#nestedObject (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

#nodeObject (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

#parentsObject (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

#scopeObject (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_pathObject (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

#cleanupObject

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.

Returns:

  • (Boolean)


15
16
17
# File 'lib/pakyow/reflection/action.rb', line 15

def named?(name)
  @name == normalize(name)
end