Class: Cure::Transformation::Translation
- Inherits:
-
Object
- Object
- Cure::Transformation::Translation
- Includes:
- ObjectHelpers
- Defined in:
- lib/cure/transformation/candidate.rb
Instance Attribute Summary collapse
-
#generator ⇒ Generator::Base
What sort of data needs to be generated.
-
#strategy ⇒ Strategy::Base
What sort of replacement is done, full/random/lookup/partial.
Instance Method Summary collapse
Methods included from ObjectHelpers
#attributes=, #from_hash, #from_json
Instance Attribute Details
#generator ⇒ Generator::Base
What sort of data needs to be generated.
64 65 66 |
# File 'lib/cure/transformation/candidate.rb', line 64 def generator @generator end |
#strategy ⇒ Strategy::Base
What sort of replacement is done, full/random/lookup/partial.
60 61 62 |
# File 'lib/cure/transformation/candidate.rb', line 60 def strategy @strategy end |
Instance Method Details
#extract(source_value) ⇒ String
68 69 70 |
# File 'lib/cure/transformation/candidate.rb', line 68 def extract(source_value) @strategy.extract(source_value, @generator) end |