Home
Random
Nearby
Log in
Settings
Donate Now
If Wikipedia is useful to you, please give today.
About Wikipedia
Disclaimers
Search
String interpolation: Difference between revisions
Article
Talk
Language
Watch
View history
Edit
Browse history interactively
← Previous edit
Next edit →
Content deleted
Content added
Visual
Wikitext
Revision as of 17:12, 6 May 2014
edit
Jordan-brough
(
talk
|
contribs
)
2
edits
→
Ruby
:
add another variation of ruby interpolation
← Previous edit
Revision as of 17:13, 6 May 2014
edit
undo
Jordan-brough
(
talk
|
contribs
)
2
edits
m
→
Ruby
:
make consistent with python example
Next edit →
Line 58:
puts "I have %s apples" % apples
# or
puts "I have %{
count
a
} apples" % {
count
a
: apples}
</source>