Module: MRubyPortable::Paths
- Defined in:
- lib/mruby_portable/paths.rb
Class Method Summary collapse
Class Method Details
.root ⇒ Object
7 8 9 |
# File 'lib/mruby_portable/paths.rb', line 7 def root File.("../..", __dir__) end |
.template(*parts) ⇒ Object
15 16 17 |
# File 'lib/mruby_portable/paths.rb', line 15 def template(*parts) File.join(templates, *parts) end |
.templates ⇒ Object
11 12 13 |
# File 'lib/mruby_portable/paths.rb', line 11 def templates File.join(root, "templates") end |