class Axe::API::Selector
Public Class Methods
new(s)
click to toggle source
# File lib/axe/api/selector.rb, line 4 def initialize(s) @selector = case s when Array then s when String, Symbol then [String(s)] when Hash then Selector.new(s[:selector]).to_a.unshift s[:iframe] else Selector.new(s.selector).to_a.unshift s.iframe end end
Public Instance Methods
to_a()
click to toggle source
# File lib/axe/api/selector.rb, line 13 def to_a @selector end