static public Method

Selector.for_class(cls)

Selector.for_class(cls)  selector

Creates a new selector for the given class name.

Source Code

# File action_controller/vendor/html-scanner/html/selector.rb, line 214
def for_class(cls)
  self.new([".?", cls])
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.