1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/.yard/templates_custom/default/class/html/setup.rb
2016-09-09 16:41:06 -07:00

17 lines
No EOL
373 B
Ruby

def init
super
sections.place(:builtins).before(:subclasses)
end
def builtins
return if object.path != "Capybara::Selector" # only show built-in selectors for Selector class
@selectors = Registry.all(:selector)
return if @selectors.nil? || @selectors.empty?
@selectors = @selectors.map do |selector|
[selector.name, selector]
end
erb(:selectors)
end