Permalink
Browse files

Use #inspect so symbols like :"ab cd'e" show well.

  • Loading branch information...
1 parent 100711c commit d5cb74a0ff09957ca6350450338cf5fb5f12d831 Arlen Christian Mart Cuss committed Dec 3, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/rouge/context.rb
View
6 lib/rouge/context.rb
@@ -197,8 +197,10 @@ def eval_call(fun, args, block)
default
end
else
- raise ArgumentError,
- "Wrong number of args (#{num_args}) passed to ruby/Symbol :#{fun}"
+ raise(
+ ArgumentError,
+ "Wrong number of args (#{num_args}) passed to " \
+ "ruby/Symbol #{fun.inspect}")
end
when Hash
if num_args == 1 || num_args == 2

0 comments on commit d5cb74a

Please sign in to comment.