Class: PCRE::Replace::Str

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_pcre/replace.rb

Instance Method Summary collapse

Constructor Details

#initialize(char) ⇒ Str

Returns a new instance of Str.



29
30
31
# File 'lib/ruby_pcre/replace.rb', line 29

def initialize(char)
  @str = char
end

Instance Method Details

#add_char(char) ⇒ Object



33
34
35
# File 'lib/ruby_pcre/replace.rb', line 33

def add_char(char)
  @str << char
end

#get_value(_source_array) ⇒ Object



37
38
39
# File 'lib/ruby_pcre/replace.rb', line 37

def get_value(_source_array)
  @str # regardless of _source_array
end