# File lib/org-ruby/regexp_helper.rb, line 114 def rewrite_subp str # :yields: type ("_" for subscript and "^" for superscript), text str.gsub! @org_subp_regexp do |match| yield $1, $2 end end