Module: Skyline

Defined in:
lib/skyline.rb,
lib/skyline/version.rb,
lib/skyline/cli/base.rb,
lib/skyline/cli/init.rb,
lib/skyline/deprecated.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, BelongsToReferable, ButtonHelper, Content, ContentItem, ContentItemSectionSelectable, FormBuilderWithErrors, HasManyReferablesIn, PagesHelper, Positionable, RefObjectHelper, Referable, Rendering, SectionItem, Settings, Taggable, TranslationHelper, UrlValidation Classes: Article, Configuration, FormBuilder, Page, PageFragment, 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