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



113
114
115
116
117
118
119
120
# File 'lib/hilbert/parser.rb', line 113

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