Method: Gemsmith::Gem::Requirement.for
- Defined in:
- lib/gemsmith/gem/requirement.rb
.for(object) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/gemsmith/gem/requirement.rb', line 17 def self.for object case object when String operator, version = object.split " " new operator: operator, raw_version: version else fail Errors::RequirementConversion, %(Invalid string conversion. Use: "<operator> <version>".) end end |