Class: ExportStrings::Core

Inherits:
Object
  • Object
show all
Defined in:
lib/export_strings/core.rb

Class Method Summary collapse

Class Method Details

.execute(rb_text, with_embexpr: true) ⇒ Object



7
8
9
# File 'lib/export_strings/core.rb', line 7

def execute(rb_text, with_embexpr: true)
  with_embexpr ? ByLex.execute(rb_text) : BySexp.execute(rb_text)
end

.execute_with_out_embexpr(rb_text) ⇒ Object

文字列展開は除外したい時



12
13
14
# File 'lib/export_strings/core.rb', line 12

def execute_with_out_embexpr(rb_text)
  execute rb_text, with_embexpr: false
end