Module: MRubyPortable::Paths

Defined in:
lib/mruby_portable/paths.rb

Class Method Summary collapse

Class Method Details

.rootObject



7
8
9
# File 'lib/mruby_portable/paths.rb', line 7

def root
  File.expand_path("../..", __dir__)
end

.template(*parts) ⇒ Object



15
16
17
# File 'lib/mruby_portable/paths.rb', line 15

def template(*parts)
  File.join(templates, *parts)
end

.templatesObject



11
12
13
# File 'lib/mruby_portable/paths.rb', line 11

def templates
  File.join(root, "templates")
end