Class: RKit::Core
Defined Under Namespace
Classes: Configurer, Engineer, Loader
Class Method Summary
collapse
Class Method Details
62
63
64
|
# File 'lib/r_kit/core.rb', line 62
def digest
Digest::MD5.hexdigest @_config.fingerprint
end
|
.inherited(subclass) ⇒ Object
14
15
16
17
|
# File 'lib/r_kit/core.rb', line 14
def inherited subclass
subclass.init!
super
end
|
57
58
59
60
|
# File 'lib/r_kit/core.rb', line 57
def inspect
"#{ name } config_w/#{ @_config.inspect } loaded/#{ loaded? }"
end
|
.load(config = {}) ⇒ Object
52
53
54
|
# File 'lib/r_kit/core.rb', line 52
def load config = {}
load! config if !loaded?
end
|
.load!(config) ⇒ Object
44
45
46
47
48
49
50
|
# File 'lib/r_kit/core.rb', line 44
def load! config
require "#{ name.underscore }.rb"
@_config.load! config
@_engine.load!
@_load.load!
end
|
.with_engine(file) ⇒ Object
20
21
22
|
# 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) ⇒ Object
24
25
26
27
|
# File 'lib/r_kit/core.rb', line 24
def with_sprockets file
@_engine.sprockets = true
load_path file, 'sass_extend'
end
|