Ruby with CSS

I want to display the css effect with ruby code
or how i access a prevoiusly define class in ruby code
plz help with simple code