rango icon indicating copy to clipboard operation
rango copied to clipboard

Reasonable Dependencies

Open botanicus opened this issue 15 years ago • 0 comments

  • Each file require just what it really needs
  • There should be specs for testing what given file requires. The specs should parse given file which should have a header specifying which files it requires (so it can works as a documentation and as a spec) and spec will ensure it match with actually loaded files.
require "rango/mini"

$LOADED_FEATURES.should require_only("rango", "rango/mixins/render", "rango/templates/template")

botanicus avatar Nov 29 '09 17:11 botanicus