Class: PactBroker::Versions::ParseSemanticVersion::SemVerWrapper
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- PactBroker::Versions::ParseSemanticVersion::SemVerWrapper
- Defined in:
- lib/pact_broker/versions/parse_semantic_version.rb
Instance Method Summary collapse
-
#initialize(target, semver_format) ⇒ SemVerWrapper
constructor
A new instance of SemVerWrapper.
- #to_s ⇒ Object
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_s ⇒ Object
23 24 25 |
# File 'lib/pact_broker/versions/parse_semantic_version.rb', line 23 def to_s format(@semver_format) end |