Class: Arugula::Part

Inherits:
Object
  • Object
show all
Defined in:
lib/arugula/parts.rb

Class Method Summary collapse

Class Method Details

.allObject


4
5
6
# File 'lib/arugula/parts.rb', line 4

def self.all
  @all ||= []
end

.inherited(subclass) ⇒ Object


8
9
10
# File 'lib/arugula/parts.rb', line 8

def self.inherited(subclass)
  all << subclass
end

.typeObject


12
13
14
# File 'lib/arugula/parts.rb', line 12

def self.type
  @type ||= name.split('::').last.downcase.chomp('part').to_sym
end