class Pakyow::Reflection::Action

@api private

Attributes

attributes[R]
binding[R]
name[R]
nested[R]
node[R]
parents[R]
scope[R]
view_path[R]

Public Class Methods

new(name:, scope:, node:, view_path:, binding: nil, attributes: [], nested: [], parents: []) click to toggle source
# 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

Public Instance Methods

cleanup() click to toggle source
# File lib/pakyow/reflection/action.rb, line 19
def cleanup
  @node = nil
end
named?(name) click to toggle source
# File lib/pakyow/reflection/action.rb, line 15
def named?(name)
  @name == normalize(name)
end

Private Instance Methods

normalize(name) click to toggle source
# File lib/pakyow/reflection/action.rb, line 25
def normalize(name)
  Support.inflector.singularize(name.to_s).to_sym
end