Method: SemanticVersioning::Segment#identifiers
- Defined in:
- lib/semantic_versioning/segment.rb
#identifiers ⇒ Object
11 12 13 14 15 |
# File 'lib/semantic_versioning/segment.rb', line 11 def identifiers return [] if @input.nil? ids = @input.split('.') ids.map! { |id| id.match(/^[0-9]+$/) ? id.to_i : id } end |