Sha256: 0d460b2dc90cb184fa1136838684ea67a6f42af8bb1ec263b07509185e882859
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
require 'ostruct' require 'pry' require 'binding_of_caller' require 'pry-byebug' require 'standalone_migrations' require 'sqlite3' require 'nrb/version' module Nrb class Configuration < OpenStruct; end class << self def config @config ||= Configuration.new yield @config if block_given? @config end alias_method :configure, :config def root config.root || Dir.pwd end def inside? gemfile = File.join(Dir.pwd, 'Gemfile') return false unless File.exist? gemfile !!(File.read(gemfile) =~ /gem\s+['"]nrb['"]/) end end end Nrb.configure do |config| config.directories = %w(models services) end require 'nrb/cli'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nrb-1.0.0 | lib/nrb.rb |