Traits are project configuration characteristics that correspond to the framework or project layout. Each trait corresponds to a class in Warbler::Traits that contains baked-in knowledge about the kind of project and how it should be packed into the jar or war file.
# File lib/warbler/traits.rb, line 31 def after_configure trait_objects.each {|t| t.after_configure } end
# File lib/warbler/traits.rb, line 23 def auto_detect_traits Traits.constants.map {|t| Traits.const_get(t)}.select {|tc| tc.detect? }.sort end
# File lib/warbler/traits.rb, line 27 def before_configure trait_objects.each {|t| t.before_configure } end
# File lib/warbler/traits.rb, line 43 def dump_traits @trait_objects = nil @traits.collect! {|t| t.name } end
Generated with the Darkfish Rdoc Generator 2.