Should use << for string concatenation in Ruby
This commit is contained in:
parent
da2b5e7506
commit
326e3cda59
@ -174,8 +174,8 @@ ERR
|
|||||||
# Returns string
|
# Returns string
|
||||||
def date_to_html_string(date)
|
def date_to_html_string(date)
|
||||||
result = '<span class="month">' + date.strftime('%b').upcase + '</span> '
|
result = '<span class="month">' + date.strftime('%b').upcase + '</span> '
|
||||||
result += date.strftime('<span class="day">%d</span> ')
|
result << date.strftime('<span class="day">%d</span> ')
|
||||||
result += date.strftime('<span class="year">%Y</span> ')
|
result << date.strftime('<span class="year">%Y</span> ')
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user