Method: Tap::Declarations.extended
- Defined in:
- lib/tap/declarations.rb
.extended(base) ⇒ Object
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/tap/declarations.rb', line 33 def self.extended(base) declaration_base = base.to_s case declaration_base when "Object", "Tap", "main" declaration_base = "" end base.instance_variable_set(:@declaration_base, declaration_base.underscore) base.instance_variable_set(:@current_desc, nil) end |