module Android::Manifest::IntentFilter

intent-filter element in components

Public Class Methods

parse(elem) click to toggle source

parse inside of intent-filter element @param [REXML::Element] elem target element @return [IntentFilter::Action, IntentFilter::Category, IntentFilter::Data]

intent-filter element
# File lib/android/manifest.rb, line 62
def self.parse(elem)
  case elem.name
  when 'action'
    Action.new(elem)
  when 'category'
    Category.new(elem)
  when 'data'
    Data.new(elem)
  else
    nil
  end
end