Class: SchemaEvolutionManager::Template::Substitution
- Inherits:
-
Object
- Object
- SchemaEvolutionManager::Template::Substitution
- Defined in:
- lib/schema-evolution-manager/template.rb
Instance Attribute Summary collapse
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(pattern, value) ⇒ Substitution
constructor
A new instance of Substitution.
Constructor Details
#initialize(pattern, value) ⇒ Substitution
Returns a new instance of Substitution.
11 12 13 14 |
# File 'lib/schema-evolution-manager/template.rb', line 11 def initialize(pattern, value) @pattern = Preconditions.check_not_blank(pattern) @value = Preconditions.check_not_blank(value) end |
Instance Attribute Details
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
9 10 11 |
# File 'lib/schema-evolution-manager/template.rb', line 9 def pattern @pattern end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/schema-evolution-manager/template.rb', line 9 def value @value end |