module Nrb
The main namespace for this gem’s logic.
Constants
- RESOURCES
- VERSION
Public Class Methods
config() { |config| ... }
click to toggle source
# File lib/nrb.rb, line 31 def config @config ||= Configuration.new yield @config if block_given? @config end
Also aliased as: configure
inside?()
click to toggle source
# File lib/nrb.rb, line 42 def inside? gemfile = File.join(Dir.pwd, 'Gemfile') return false unless File.exist? gemfile !(File.read(gemfile) =~ /gem\s+['"]nrb['"]/).nil? end
resources()
click to toggle source
# File lib/nrb.rb, line 49 def resources RESOURCES end
root()
click to toggle source
# File lib/nrb.rb, line 38 def root config.root || Dir.pwd end