Skip to content
Open

bs #2

Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sample.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
class Sample
def hello
puts "Hello Ruby!"
puts "brahms"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[rubocop] <Style/StringLiterals> reported by reviewdog 🐶
Prefer single-quoted strings when you don't need string interpolation or special symbols.

Suggested change
puts "brahms"
puts 'brahms'

puts 'jji'
end
end

# Now using above class to create objects
object = Sample. new
object.hello
puts "brhms"
puts "hhiD"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[rubocop] <Style/StringLiterals> reported by reviewdog 🐶
Prefer single-quoted strings when you don't need string interpolation or special symbols.

Suggested change
puts "hhiD"
puts 'hhiD'