ruby object code example
Example 1: ruby method
def print_args(arg1,ar2)
puts arg1
puts arg2
end
Example 2: ruby create object with attributes
class MyObject
attr_accessor :attribute1, :attribute2, :attribute3
end
test_object = MyObject.new
test_object.attribute1 = "Holy cow!"