Module: EacLauncher::Stereotype
- Included in:
- EacLauncher::Stereotypes::Git, EacLauncher::Stereotypes::GitSubrepo, EacLauncher::Stereotypes::GitSubtree, EacLauncher::Stereotypes::Rails, EacLauncher::Stereotypes::RedminePlugin, EacLauncher::Stereotypes::RubyGem
- Defined in:
- lib/eac_launcher/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.
8 9 10 |
# File 'lib/eac_launcher/stereotype.rb', line 8 def stereotypes @stereotypes end |
Class Method Details
.git_stereotypes ⇒ Object
16 17 18 |
# File 'lib/eac_launcher/stereotype.rb', line 16 def git_stereotypes stereotypes.select { |c| c.name.demodulize.downcase.match('git') } end |
.included(base) ⇒ Object
10 11 12 13 14 |
# File 'lib/eac_launcher/stereotype.rb', line 10 def included(base) @stereotypes ||= [] @stereotypes << base base.extend(ClassMethods) end |
.nogit_stereotypes ⇒ Object
20 21 22 |
# File 'lib/eac_launcher/stereotype.rb', line 20 def nogit_stereotypes stereotypes - git_stereotypes end |