class method
self.for_id
Ruby on Rails 4.0.13
Since v2.2.3 Last seen in v4.1.16Signature
Selector.for_id(id) => selector
Creates a new selector for the given id.
Parameters
-
idreq
Source
# File actionpack/lib/action_view/vendor/html-scanner/html/selector.rb, line 225
def for_id(id)
self.new(["#?", id])
end
Defined in actionpack/lib/action_view/vendor/html-scanner/html/selector.rb line 225
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in HTML::Selector