class DParse::Parsers::Capturing

Public Class Methods

new(parser) click to toggle source
# File lib/d-parse/parsers/modifiers/capturing.rb, line 4
def self.new(parser)
  parser.map { |_data, result, old_pos| result.input[old_pos.index...result.pos.index] }
end
new(*) click to toggle source
# File lib/d-parse/parsers/modifiers/capturing.rb, line 8
def initialize(*)
  raise ArgumentError, "#{self.class} is not supposed to be initialized"
end