Top Level Namespace

Includes:
Asciidoctor

Defined Under Namespace

Modules: J1, J1App, J1AppCompress, J1AppTest, Jekyll, OmniAuth, Sinatra Classes: J1WardenOmniAuth, String

Constant Summary collapse

PeriodRx =
/\.(?= |$)/
SIZE_MAP =
{'1x' => 18, 'lg' => 24, '2x' => 34, '3x' => 50, '4x' => 68, '5x' => 85}

Instance Method Summary collapse

Instance Method Details

#require_all(path) ⇒ Object

Require all of the Ruby files in the given directory.

path - The String relative path from here to the directory. Returns nothing.



7
8
9
10
11
12
# File 'lib/j1.rb', line 7

def require_all(path)
  glob = File.join(File.dirname(__FILE__), path, '*.rb')
  Dir[glob].sort.each do |f|
    require f
  end
end