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 makeChange(price): | |
... | |
end | |
# Examples: | |
> makeChange(0.50) | |
< 2 Quarters | |
> makeChange(0.45) | |
< 2 Quarters, 1 Nickel |
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
using System; | |
using System.Dynamic; | |
using IronRuby; | |
using IronRuby.Builtins; | |
using Microsoft.Scripting.Hosting; | |
using Microsoft.Scripting; | |
using System.Reflection; | |
namespace DynamicTest | |
{ |
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
using System; | |
using System.Dynamic; | |
using IronRuby; | |
using IronRuby.Builtins; | |
using Microsoft.Scripting.Hosting; | |
using Microsoft.Scripting; | |
namespace DynamicTest | |
{ | |
class MainClass |
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
using System; | |
using System.Dynamic; | |
using IronRuby; | |
using IronRuby.Builtins; | |
using Microsoft.Scripting.Hosting; | |
using Microsoft.Scripting; | |
namespace DynamicTest | |
{ | |
class MainClass |
NewerOlder