Class: SchemaEvolutionManager::Template::Substitution

Inherits:
Object
  • Object
show all
Defined in:
lib/schema-evolution-manager/template.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#patternObject (readonly)

Returns the value of attribute pattern.



9
10
11
# File 'lib/schema-evolution-manager/template.rb', line 9

def pattern
  @pattern
end

#valueObject (readonly)

Returns the value of attribute value.



9
10
11
# File 'lib/schema-evolution-manager/template.rb', line 9

def value
  @value
end