Class: PCRE::Replace::Str
- Inherits:
-
Object
- Object
- PCRE::Replace::Str
- Defined in:
- lib/ruby_pcre/replace.rb
Instance Method Summary collapse
- #add_char(char) ⇒ Object
- #get_value(_source_array) ⇒ Object
-
#initialize(char) ⇒ Str
constructor
A new instance of Str.
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 |