Module: EacLauncher::Stereotype

Defined Under Namespace

Modules: ClassMethods

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.stereotypesObject (readonly)

Returns the value of attribute stereotypes.



4
5
6
# File 'lib/eac_launcher/stereotype.rb', line 4

def stereotypes
  @stereotypes
end

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
# File 'lib/eac_launcher/stereotype.rb', line 6

def included(base)
  @stereotypes ||= []
  @stereotypes << base
  base.extend(ClassMethods)
end

.nogit_stereotypesObject



12
13
14
# File 'lib/eac_launcher/stereotype.rb', line 12

def nogit_stereotypes
  stereotypes.reject { |c| c.name.demodulize.downcase.match('git') }
end