Sha256: b1febb0b927b62f91bb17f896837325f0c1586fbfae89c6c9b77726e1f5954b9

Contents?: true

Size: 285 Bytes

Versions: 15

Compression:

Stored size: 285 Bytes

Contents

class String

  # this is a helper to create source strings from procs
  def source_formater_for_line_sub
    self.gsub!(';',"\n")
    self.gsub!(/\bdo\b/,'{')
    self.gsub!(/\bend\b/,'}')

    self.frequency(/{/)+
        self.frequency(/def/)-
        self.frequency(/}/)
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
procemon-0.6.3 lib/procemon/function/proc_source/string.rb
procemon-0.6.2 lib/procemon/function/proc_source/string.rb
procemon-0.6.1 lib/procemon/function/proc_source/string.rb
procemon-0.5.0 lib/procemon/function/proc_source/string.rb
procemon-0.4.5 lib/procemon/function/proc_source/string.rb
procemon-0.4.4 lib/procemon/function/proc_source/string.rb
procemon-0.4.3 lib/procemon/function/proc_source/string.rb
procemon-0.4.2 lib/procemon/function/proc_source/string.rb
procemon-0.4.1 lib/procemon/function/proc_source/string.rb
procemon-0.4.0 lib/procemon/function/proc_source/string.rb
procemon-0.3.4 lib/procemon/function/proc_source/string.rb
procemon-0.3.3 lib/procemon/function/proc_source/string.rb
procemon-0.3.2 lib/procemon/function/proc_source/string.rb
procemon-0.3.1 lib/procemon/function/proc_source/string.rb
procemon-0.2.0 lib/procemon/function/proc_source/string.rb