Sha256: 88e8967d998c9b15789c5c029499783195a72bb5fd354fd256232e44d9a32777
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
# French Man Hash and object mocking ## Basic Example ``` ruby groceries = FrenchMan::Grocery.blueprint { garlic { true } } groceries.garlic #=> true groceries[:garlic] #=> true ``` ## Bigger Example ``` ruby groceries = FrenchMan::Grocery.plan { vino { FrenchMan::Vino.plan { red { "Syrah" } white { "Cabernet Sauvignon" } } } cheeses { ['Camembert', 'Crotin du Chavignol'] } } groceries.vino.red #=> "Syrah" ``` ## Hash Example ```ruby groceries = FrenchMan::Grocery.plan :vino => { :red => "Syrah", :white => "Cabernet Sauvignon"} groceries.vino.red #=> "Syrah" ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
french_man-0.0.3 | README.md |