Class: Cure::Generator::Base
- Inherits:
-
Object
- Object
- Cure::Generator::Base
show all
- Defined in:
- lib/cure/generator/base.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(options = {}) ⇒ Base
9
10
11
|
# File 'lib/cure/generator/base.rb', line 9
def initialize(options={})
@options = options
end
|
Instance Attribute Details
#options ⇒ Hash
7
8
9
|
# File 'lib/cure/generator/base.rb', line 7
def options
@options
end
|
Instance Method Details
#generate(source_value = nil) ⇒ String
15
16
17
18
19
20
|
# File 'lib/cure/generator/base.rb', line 15
def generate(source_value=nil)
translated = _generate(source_value)
translated = "#{prefix}#{translated}" if prefix
translated = "#{translated}#{suffix}" if suffix
translated
end
|