Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Method calling methods

Status
Not open for further replies.

lordhavoc1610

Programmer
Jun 24, 2007
2
US
Can a methd call on another methd liks so?



def methodA
varA= 'World!'
end
def methodB
methodA
puts 'Hello ' + varA
end
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top