class PassionView::Actionable::ActionList

Public Instance Methods

context(context) click to toggle source
# File lib/passion_view/actionable.rb, line 35
def context(context)
  select do |a|
    case a.context
    when Symbol
      a.context == context
    when Array
      a.context.include?(context)
    end
  end
end
type(type) click to toggle source
# File lib/passion_view/actionable.rb, line 46
def type(type)
  select do |a|
    case a.type
    when Symbol
      a.type == type
    when Array
      a.type.include?(type)
    end
  end
end