Class: Jasmine::CoreConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/jasmine/core_configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(core = Jasmine::Core) ⇒ CoreConfiguration

Returns a new instance of CoreConfiguration.



3
4
5
# File 'lib/jasmine/core_configuration.rb', line 3

def initialize(core = Jasmine::Core)
  @core = core
end

Instance Method Details

#boot_filesObject



16
17
18
# File 'lib/jasmine/core_configuration.rb', line 16

def boot_files
  Dir.glob(File.join(boot_path, "**"))
end

#boot_pathObject

TODO: maybe this doesn’t belong in CoreConfig



12
13
14
# File 'lib/jasmine/core_configuration.rb', line 12

def boot_path
  Jasmine.root('javascripts')
end

#css_filesObject



24
25
26
# File 'lib/jasmine/core_configuration.rb', line 24

def css_files
  @core.css_files
end

#js_filesObject



20
21
22
# File 'lib/jasmine/core_configuration.rb', line 20

def js_files
  @core.js_files
end

#pathObject



7
8
9
# File 'lib/jasmine/core_configuration.rb', line 7

def path
  @core.path
end