Class: Grepity::TargetText
- Inherits:
-
Object
- Object
- Grepity::TargetText
- Defined in:
- lib/grepity/target_text.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(text, options = {}) ⇒ TargetText
constructor
A new instance of TargetText.
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 = @value = create_regexp(text) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/grepity/target_text.rb', line 3 def value @value end |