Set line color using ruby api

If you go to window>styles>edit tab and click on the black square and change the color.
If you want to change individual lines . in the same tab next to color select drop down box and select by material. You can know paint individual lines with paint bucket.

Phl