class TextExtractor::Directives::CaptureGroup
a line group that will be captured to a value
Public Class Methods
new(name, *args)
click to toggle source
# File lib/text_extractor/directives/group.rb, line 49 def initialize(name, *args) @name = name @lines = args end
Public Instance Methods
join()
click to toggle source
# File lib/text_extractor/directives/group.rb, line 54 def join ["(?<#{@name}>", *@lines, ')'] end