Class: Grepity::TargetText

Inherits:
Object
  • Object
show all
Defined in:
lib/grepity/target_text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, options = {}) ⇒ TargetText

Returns a new instance of TargetText.



5
6
7
8
# File 'lib/grepity/target_text.rb', line 5

def initialize(text, options = {})
  @options = options
  @value = create_regexp(text)
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/grepity/target_text.rb', line 3

def value
  @value
end