minor fixes

This commit is contained in:
Torsten Ruger
2018-04-02 19:31:08 +03:00
parent 65d57c8c7c
commit beb487eb09
4 changed files with 7 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ module Risc
end
def source_mini
return "(no source)" unless source
return "(from: #{source[0..25]})" if source.is_a?(String)
return "(from: #{source[0..35]})" if source.is_a?(String)
"(from: #{source.class.name.split("::").last})"
end
end