Class: PactBroker::Versions::ParseSemanticVersion::SemVerWrapper

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/pact_broker/versions/parse_semantic_version.rb

Instance Method Summary collapse

Constructor Details

#initialize(target, semver_format) ⇒ SemVerWrapper

Returns a new instance of SemVerWrapper.



18
19
20
21
# File 'lib/pact_broker/versions/parse_semantic_version.rb', line 18

def initialize target, semver_format
  super target
  @semver_format = semver_format
end

Instance Method Details

#to_sObject



23
24
25
# File 'lib/pact_broker/versions/parse_semantic_version.rb', line 23

def to_s
  format(@semver_format)
end