class Lookbook::Component
def dir_path
def dir_path full_path.dirname end
def full_path
def full_path Pathname.new("#{Lookbook.config.components_path}/#{path}.rb") end
def initialize(name)
def initialize(name) @name = name super(path) end
def inline?
def inline? template_path.present? end
def path
def path name.underscore end
def rel_path
def rel_path Pathname.new("#{path}.rb") end
def template_path
def template_path Dir.glob("#{Lookbook.config.components_path}/#{path}.*.erb").first end