Class: RKit::Core
- Inherits:
-
Object
show all
- Defined in:
- lib/r_kit/core.rb
Defined Under Namespace
Classes: Configurer, Engineer, Loader
Class Method Summary
collapse
Class Method Details
.digest ⇒ Object
47
48
49
|
# File 'lib/r_kit/core.rb', line 47
def digest
Digest::MD5.hexdigest @_config.fingerprint
end
|
.inherited(base) ⇒ Object
10
11
12
13
|
# File 'lib/r_kit/core.rb', line 10
def inherited base
base.init!
super
end
|
.init! ⇒ Object
4
5
6
7
8
|
# File 'lib/r_kit/core.rb', line 4
def init!
@_config = Configurer.new self
@_engine = Engineer.new self
@_load = Loader.new self
end
|
.inspect ⇒ Object
42
43
44
45
|
# File 'lib/r_kit/core.rb', line 42
def inspect
"#{ name } config_w/#{ @_config.inspect }"
end
|
.load(config = {}) ⇒ Object
34
35
36
37
38
|
# File 'lib/r_kit/core.rb', line 34
def load config = {}
@_config.load! config
@_engine.load!
@_load.load!
end
|
.with_engine(file) ⇒ Object
16
17
18
|
# File 'lib/r_kit/core.rb', line 16
def with_engine file
@_engine.pathname = Pathname.new(File.dirname(file)) + name.demodulize.underscore
end
|
.with_sprockets(file) ⇒ Object
20
21
22
23
|
# File 'lib/r_kit/core.rb', line 20
def with_sprockets file
@_engine.sprockets = true
load_path file, 'sass_extend.rb'
end
|