class Belt::Project

Attributes

description[W]
tags[RW]

Public Instance Methods

description() click to toggle source
   # File lib/belt/model.rb
47 def description
48   @description || ''
49 end
pre_init() click to toggle source
   # File lib/belt/model.rb
26 def pre_init
27   @tags = []
28 end
qualified_name() click to toggle source
   # File lib/belt/model.rb
30 def qualified_name
31   "#{self.scope.name}/#{self.name}"
32 end
tag_value(key) click to toggle source
   # File lib/belt/model.rb
36 def tag_value(key)
37   self.tags.each do |tag|
38     if tag =~ /^#{Regexp.escape(key)}=/
39       return tag[(key.size + 1)...100000]
40     end
41   end
42   nil
43 end