module Alephant::Renderer::Views::Base::ClassMethods
Attributes
base_path[RW]
Public Instance Methods
inherited(subclass)
click to toggle source
# File lib/alephant/renderer/views/base.rb, line 40 def inherited(subclass) current_dir = File.dirname(caller.first[%r{/[^:]+}]) dir_path = Pathname.new(File.join(current_dir, '..')).realdirpath subclass.base_path = dir_path.to_s Alephant::Renderer::Views.register(subclass) end