Class: Hilbert::Parser::LangEqualizer

Inherits:
Object
  • Object
show all
Defined in:
lib/hilbert/parser.rb

Overview

FIXIT

Class Method Summary collapse

Class Method Details

.execute(str) ⇒ Object



103
104
105
106
107
108
109
110
# File 'lib/hilbert/parser.rb', line 103

def self.execute(str)
  case $meta_info.lang
  when :ruby
    str.gsub(/\^/, '**')
  else
    str
  end
end