Module: Avm::Projects::Stereotype
- Included in:
- Avm::Projects::Stereotypes::Git, Avm::Projects::Stereotypes::GitSubrepo, Avm::Projects::Stereotypes::GitSubtree, Avm::Projects::Stereotypes::RailsApplication, Avm::Projects::Stereotypes::RedminePlugin, Avm::Projects::Stereotypes::RubyGem
- Defined in:
- lib/avm/projects/stereotype.rb
Defined Under Namespace
Modules: ClassMethods
Class Attribute Summary collapse
-
.stereotypes ⇒ Object
readonly
Returns the value of attribute stereotypes.
Class Method Summary collapse
Class Attribute Details
.stereotypes ⇒ Object (readonly)
Returns the value of attribute stereotypes.
10 11 12 |
# File 'lib/avm/projects/stereotype.rb', line 10 def stereotypes @stereotypes end |
Class Method Details
.git_stereotypes ⇒ Object
18 19 20 |
# File 'lib/avm/projects/stereotype.rb', line 18 def git_stereotypes stereotypes.select { |c| c.name.demodulize.downcase.match('git') } end |
.included(base) ⇒ Object
12 13 14 15 16 |
# File 'lib/avm/projects/stereotype.rb', line 12 def included(base) @stereotypes ||= [] @stereotypes << base base.extend(ClassMethods) end |
.nogit_stereotypes ⇒ Object
22 23 24 |
# File 'lib/avm/projects/stereotype.rb', line 22 def nogit_stereotypes stereotypes - git_stereotypes end |