Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Sample
- def hello
- puts "Hello Ruby!"
- end
- end
- # Now using above class to create objects
- object = Sample. new
- object.hello
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement