Ruby string_interpolation.rb example
This commit is contained in:
parent
4dd1867f4b
commit
c648e72c44
1 changed files with 10 additions and 0 deletions
10
string_interpolation.rb
Normal file
10
string_interpolation.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
name = "Ruby"
|
||||
release_date = 1992
|
||||
|
||||
puts "Hello #{name}" # => Hello Ruby
|
||||
|
||||
puts "The #{name} programming language was released in #{release_date}." # => The Ruby programming language was released in 1995.
|
||||
|
||||
# Dikkatli olun " (Cift tirnak) ile ' (Tek tirnak) farkli sonuclar cikarir.
|
||||
|
||||
puts 'The #{name} programming language was released in #{release_date}.' # => The #{name} programming language was released in #{release_date}.
|
Loading…
Add table
Reference in a new issue