class Object

Public Class Methods

_eval_as_ruby_string(text) click to toggle source
# File lib/earthquake/commands.rb, line 110
def self._eval_as_ruby_string(text)
  return text unless config[:eval_as_ruby_string_for_update]
  begin
    text = eval(%Q|"#{text.gsub('"', '\"')}"|)
  rescue SyntaxError => e
  rescue Exception => e
    puts e.message.c(:notice)
  end
  text
end