Module: Skyline

Defined in:
lib/skyline.rb,
lib/skyline/version.rb,
lib/skyline/cli/base.rb,
lib/skyline/cli/init.rb

Overview

The Skyline contains all Skyline related (core) code and defines some methods like the root (path) and version of the Skyline core.

Defined Under Namespace

Modules: ApplicationHelper, ButtonHelper, Content, ContentItem, ContentItemSectionSelectable, PagesHelper, Positionable, RefObjectHelper, Referable, RenderableScopeInterface, Rendering, SearchableItem, SectionItem, Settings, Taggable, TranslationHelper, UrlValidation Classes: Article, Configuration, FormBuilderWithErrors, Page, PageFragment, RenderableScope, Renderer, Site, Tag, User, Variant

Class Method Summary collapse

Class Method Details

.rootPathname

The root of the Skyline tree.

Returns:

  • (Pathname)


12
13
14
# File 'lib/skyline.rb', line 12

def root
  @@root ||= Pathname.new(File.dirname(__FILE__) + "/../")
end

.versionString

Shortcut for the current version

Returns:

  • (String)

    The current version in the format x.x.x.x (the BUILD version is optional)



20
21
22
# File 'lib/skyline.rb', line 20

def version
  Skyline::VERSION::STRING
end