lib/cmds/shell_eruby.rb in cmds-0.1.5 vs lib/cmds/shell_eruby.rb in cmds-0.2.0

- old
+ new

@@ -1,11 +1,11 @@ require 'erubis' -module Cmds +class Cmds # extension of Erubis' EscapedEruby (which auto-escapes `<%= %>` and # leaves `<%== %>` raw) that calls `Cmds.expand_sub` on the value class ShellEruby < Erubis::EscapedEruby def escaped_expr code - "::Cmds.expand_sub(#{code.strip})" + "::Cmds.tokenize(#{code.strip})" end end -end # module Cmds +end # class Cmds \ No newline at end of file