This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def doCalc () | |
return 1 + 2 | |
end | |
def doAwesome (x) | |
return doCalc() + x | |
end | |
#before substitution... | |
def test () | |
return doAwesome(3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Velocity { | |
public function __construct (PayoffCalc $PayoffCalc) | |
{ | |
$this->_PayoffCalc = $PayoffCalc; | |
} | |
public function toFloat() | |
{ | |
$paymentPerDay = $this->_PayoffCalc->getPaymentPerDay(); |
NewerOlder