mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Remove more cruft
This commit is contained in:
parent
ae0f133800
commit
cdec6e2eb0
2 changed files with 1 additions and 10 deletions
|
@ -1,7 +0,0 @@
|
|||
module Haml
|
||||
# The root directory of the Haml source tree.
|
||||
# This may be overridden by the package manager
|
||||
# if the lib directory is separated from the main source tree.
|
||||
# @api public
|
||||
ROOT_DIR = File.expand_path(File.join(__FILE__, "../../.."))
|
||||
end
|
|
@ -5,8 +5,6 @@ require 'stringio'
|
|||
require 'strscan'
|
||||
require 'rbconfig'
|
||||
|
||||
require 'haml/root'
|
||||
|
||||
module Haml
|
||||
# A module containing various useful functions.
|
||||
module Util
|
||||
|
@ -28,7 +26,7 @@ module Haml
|
|||
# @param file [String] The filename relative to the Haml root
|
||||
# @return [String] The filename relative to the the working directory
|
||||
def scope(file)
|
||||
File.join(Haml::ROOT_DIR, file)
|
||||
File.expand_path("../../../#{file}", __FILE__)
|
||||
end
|
||||
|
||||
# Converts an array of `[key, value]` pairs to a hash.
|
||||
|
|
Loading…
Add table
Reference in a new issue