-
-
Save deepakdargade/c93fa0c477814a289f18cfa7b009d68b to your computer and use it in GitHub Desktop.
Revisions
-
revathskumar revised this gist
Jan 30, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ "Price of the **product** is Rs. **cost**." -
revathskumar revised this gist
Jan 30, 2013 . 3 changed files with 8 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ template = "Price of the %s is Rs. %f." # %s - string, %f - float and %d - integer p template % ["apple", 70.00] # prints Price of the apple is Rs. 70.000000. This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ template = "Price of the %{product} is Rs. %{price}." p template % {product:"apple", price:70.00} # prints Price of the apple is Rs. 70.0. This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ product = "apple" cost = "70.00" p "Price of the #{product} is Rs. #{cost}." # prints Price of the apple is Rs. 70.00. -
revathskumar revised this gist
Jan 30, 2013 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ template = "The price of the %s is Rs. %f." # %s - string, %f - float and %d - integer p template % ["apple", 70.00] # prints The price of the apple is Rs. 70.000000. -
revathskumar revised this gist
Jan 30, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,4 +2,4 @@ cost = "70.00" p "The price of the #{product} is Rs. #{cost}." # prints The price of the apple is Rs. 70.00. -
revathskumar created this gist
Jan 30, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ product = "apple" cost = "70.00" p "The price of the #{product} is Rs. #{cost}." // prints The price of the apple is Rs. 70.00.