Z
Zach Dennis
I've got a class called Email and right now i have:
class Email
def initialize
....stuff here....
end
def print
return ....stuff here....
end
end
e = Email.new( ...stuff here... )
puts Email.print
But I would love to say:
puts Email
to get the same result.
Any ideas?
Thanks,
Zach
class Email
def initialize
....stuff here....
end
def print
return ....stuff here....
end
end
e = Email.new( ...stuff here... )
puts Email.print
But I would love to say:
puts Email
to get the same result.
Any ideas?
Thanks,
Zach