class method
self.for_id
Ruby on Rails 2.3.18
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_controller/vendor/html-scanner/html/selector.rb, line 223
def for_id(id)
self.new(["#?", id])
end
Defined in actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb line 223
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in HTML::Selector