lib/lotus.rb in lotusrb-0.5.0 vs lib/lotus.rb in lotusrb-0.6.0

- old
+ new

@@ -7,19 +7,25 @@ # # @since 0.1.0 # # @see http://lotusrb.org module Lotus + DEFAULT_PUBLIC_DIRECTORY = 'public'.freeze + # Return root of the project (top level directory). # # @return [Pathname] root path # # @since 0.3.2 # # @example # Lotus.root # => #<Pathname:/Users/luca/Code/bookshelf> def self.root environment.root + end + + def self.public_directory + root.join(DEFAULT_PUBLIC_DIRECTORY) end # Return the current environment # # @return [String] the current environment