Skip to content

Commit

Permalink
Minor refactoring on printer= method
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyObtiva committed Aug 21, 2020
1 parent 8b408bd commit b601804
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/puts_debuggerer.rb
Expand Up @@ -184,11 +184,7 @@ def source_line_count=(value)

def printer=(printer)
if printer.nil?
if Object.const_defined?(:Rails)
@printer = PRINTER_RAILS
else
@printer = PRINTER_DEFAULT
end
@printer = Object.const_defined?(:Rails) ? PRINTER_RAILS : PRINTER_DEFAULT
elsif printer.is_a?(Proc)
@printer = printer
else
Expand Down

0 comments on commit b601804

Please sign in to comment.