module Namaste::Tag::Dirtype
Public Instance Methods
dirtype()
click to toggle source
@return [Struct::Dirtype] Parses the namaste ‘type’ tag to provide structured data (full, name, major, minor)
# File lib/namaste/tag.rb, line 112 def dirtype v = value matches = /([^_\/]+)[_\/](\d+)\.(\d+)/.match(v) if matches Struct.new("Dirtype", :full, :name, :major, :minor) Struct::Dirtype.new(*matches) end end