tracks/ruby/exercises/anagram/.meta/generator/anagram_case.rb in trackler-2.1.0.24 vs tracks/ruby/exercises/anagram/.meta/generator/anagram_case.rb in trackler-2.1.0.25
- old
+ new
@@ -11,10 +11,10 @@
def indent_lines(code, indent = 2)
code.join("\n" + ' '*2*indent)
end
def show_comment
- "# #{comment}" unless comment.nil?
+ "# #{comment}" if respond_to?(:comment)
end
def detector
"detector = Anagram.new('#{subject}')"
end