Class: Makers::Dsl::Trait

Inherits:
Object
  • Object
show all
Defined in:
lib/makers/dsl/trait.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, &block) ⇒ Trait

Returns a new instance of Trait.



5
6
7
# File 'lib/makers/dsl/trait.rb', line 5

def initialize(name, &block)
  Makers.traits.add name, block
end