Class: Jasmine::CoreConfiguration
- Inherits:
-
Object
- Object
- Jasmine::CoreConfiguration
- Defined in:
- lib/jasmine/core_configuration.rb
Instance Method Summary collapse
- #boot_files ⇒ Object
-
#boot_path ⇒ Object
TODO: maybe this doesn’t belong in CoreConfig.
- #css_files ⇒ Object
-
#initialize(core = Jasmine::Core) ⇒ CoreConfiguration
constructor
A new instance of CoreConfiguration.
- #js_files ⇒ Object
- #path ⇒ Object
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_files ⇒ Object
16 17 18 |
# File 'lib/jasmine/core_configuration.rb', line 16 def boot_files Dir.glob(File.join(boot_path, "**")) end |
#boot_path ⇒ Object
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_files ⇒ Object
24 25 26 |
# File 'lib/jasmine/core_configuration.rb', line 24 def css_files @core.css_files end |
#js_files ⇒ Object
20 21 22 |
# File 'lib/jasmine/core_configuration.rb', line 20 def js_files @core.js_files end |
#path ⇒ Object
7 8 9 |
# File 'lib/jasmine/core_configuration.rb', line 7 def path @core.path end |