class Marksman::Theme

Public Class Methods

new(name) click to toggle source
# File lib/marksman/theme.rb, line 5
def initialize(name)
  @name = name
end

Public Instance Methods

path() click to toggle source
# File lib/marksman/theme.rb, line 9
def path
  @path ||= if File.directory?(@name)
              Pathname.new @name
            else
              Pathname.new(File.dirname(__FILE__))
                .join('../../')
                .join('themes')
                .join(@name)
            end
end