class RKit::Core
Public Class Methods
digest()
click to toggle source
# File lib/r_kit/core.rb, line 62 def digest Digest::MD5.hexdigest @_config.fingerprint end
inherited(subclass)
click to toggle source
Calls superclass method
# File lib/r_kit/core.rb, line 14 def inherited subclass subclass.init! super end
init!()
click to toggle source
# File lib/r_kit/core.rb, line 8 def init! @_config = Configurer.new self @_engine = Engineer.new self @_load = Loader.new self end
inspect()
click to toggle source
# File lib/r_kit/core.rb, line 57 def inspect "#{ name } config_w/#{ @_config.inspect } loaded/#{ loaded? }" # TODO: add link to doc end
load(config = {})
click to toggle source
# File lib/r_kit/core.rb, line 52 def load config = {} load! config if !loaded? end
load!(config)
click to toggle source
# File lib/r_kit/core.rb, line 44 def load! config require "#{ name.underscore }.rb" @_config.load! config @_engine.load! @_load.load! end
loaded?()
click to toggle source
# File lib/r_kit/core.rb, line 40 def loaded? RKit::Core::Loader.loaded? name end
with_engine(file)
click to toggle source
# File lib/r_kit/core.rb, line 20 def with_engine file @_engine.pathname = Pathname.new(File.dirname(file)) + name.demodulize.underscore end
with_sprockets(file)
click to toggle source
# File lib/r_kit/core.rb, line 24 def with_sprockets file @_engine.sprockets = true load_path file, 'sass_extend' end