Class: ExportStrings::BySexp

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

Overview

文字列展開は含めない

Class Method Summary collapse

Class Method Details

.execute(rb_text) ⇒ Object



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

def execute(rb_text)
  str_content_nodes = recursively_push_for_str_content_nodes Ripper.sexp(rb_text), []
  content_nodes2str_ary str_content_nodes
end