Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/taglob/extensions/string.rb

Instance Method Summary collapse

Instance Method Details

#tagsObject



2
3
4
# File 'lib/taglob/extensions/string.rb', line 2

def tags
  self =~ /^# ?tags:\s+(.*)/ ? $1.split(',').map {|tag| tag.strip} : []
end