Top Level Namespace
Defined Under Namespace
Modules: ContextSpook
Instance Method Summary collapse
-
#asset(name) ⇒ String
The asset method constructs a file path by joining the directory of the current file, an ‘assets’ subdirectory, and the provided filename.
Instance Method Details
#asset(name) ⇒ String
The asset method constructs a file path by joining the directory of the current file, an ‘assets’ subdirectory, and the provided filename.
17 18 19 |
# File 'spec/spec_helper.rb', line 17 def asset(name) File.join(__dir__, 'assets', name) end |