Method: Mentor::TextToColor#initialize
- Defined in:
- lib/helpers/text_to_color.rb
#initialize(full_text, text_to_color, output_type, match_pattern = nil) ⇒ TextToColor
Returns a new instance of TextToColor.
7 8 9 10 11 12 |
# File 'lib/helpers/text_to_color.rb', line 7 def initialize(full_text, text_to_color, output_type, match_pattern = nil) @full_text = full_text @text_to_color = text_to_color @output_type = output_type @match_pattern = match_pattern end |