P
Peter Loftus
#!/usr/bin/ruby
class Example
def Examplemethod(var1)
puts var1
end
end
Check = Example.new
Check.Examplemethod("Loftz")
Hey guys
So this is just calling a method that prints out a name. Im just
wondering can i specify that there may be mulitple parameters going into
this method
for example
Check.Example("Loftz","peter","john","paul","gary")
and have that method inside the class Example not know how many
parameters are going to be passed into it?
def Examplemethod(?)
Regards
Loftz
class Example
def Examplemethod(var1)
puts var1
end
end
Check = Example.new
Check.Examplemethod("Loftz")
Hey guys
So this is just calling a method that prints out a name. Im just
wondering can i specify that there may be mulitple parameters going into
this method
for example
Check.Example("Loftz","peter","john","paul","gary")
and have that method inside the class Example not know how many
parameters are going to be passed into it?
def Examplemethod(?)
Regards
Loftz