Sha256: 180a68a39e4baa676b24212883de09df4d1809eedb3eabe97f302e5971154844

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 Bytes

Contents

module Qlang
  module Parser
    module Base
      include ::Qlang::Api
      # TODO:
      class ::String
        def rm(str_or_rgx)
          gsub!(str_or_rgx, '')
        end

        def rms(*str_or_rgxs)
          str_or_rgxs.each do |str_or_rgx|
            rm(str_or_rgx)
          end
          self
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qlang-0.0.14 lib/qlang/parser/base.rb
qlang-0.0.1 lib/qlang/parser/base.rb