Class: Statique
- Inherits:
-
Object
- Object
- Statique
- Extended by:
- Forwardable
- Includes:
- Singleton
- Defined in:
- lib/statique/app.rb,
lib/statique/cli.rb,
lib/statique/mode.rb,
lib/statique/version.rb,
lib/statique/cli/init.rb,
lib/statique/discover.rb,
lib/statique/document.rb,
lib/statique/cli/build.rb,
lib/statique/paginator.rb,
lib/statique/cli/server.rb,
lib/statique/configuration.rb,
lib/statique.rb
Defined Under Namespace
Classes: App, CLI, Configuration, Discover, Document, Error, Mode, Paginator
Constant Summary collapse
- VERSION =
"0.1.4"
Instance Attribute Summary collapse
-
#build_queue ⇒ Object
readonly
Returns the value of attribute build_queue.
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#discover ⇒ Object
readonly
Returns the value of attribute discover.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#pwd ⇒ Object
readonly
Returns the value of attribute pwd.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Statique
constructor
A new instance of Statique.
- #statique ⇒ Object
- #ui ⇒ Object
- #url(document_or_path) ⇒ Object
- #version ⇒ Object
Constructor Details
Instance Attribute Details
#build_queue ⇒ Object (readonly)
Returns the value of attribute build_queue.
30 31 32 |
# File 'lib/statique.rb', line 30 def build_queue @build_queue end |
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
30 31 32 |
# File 'lib/statique.rb', line 30 def configuration @configuration end |
#discover ⇒ Object (readonly)
Returns the value of attribute discover.
30 31 32 |
# File 'lib/statique.rb', line 30 def discover @discover end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
30 31 32 |
# File 'lib/statique.rb', line 30 def mode @mode end |
#pwd ⇒ Object (readonly)
Returns the value of attribute pwd.
30 31 32 |
# File 'lib/statique.rb', line 30 def pwd @pwd end |
Class Method Details
.ui ⇒ Object
51 52 53 54 55 |
# File 'lib/statique.rb', line 51 def self.ui @ui ||= TTY::Logger.new(output: $stdout) do |config| config.level = :debug if ENV["DEBUG"] == "true" end end |
Instance Method Details
#statique ⇒ Object
39 40 41 |
# File 'lib/statique.rb', line 39 def statique self.class.instance end |
#ui ⇒ Object
47 48 49 |
# File 'lib/statique.rb', line 47 def ui self.class.ui end |
#url(document_or_path) ⇒ Object
57 58 59 |
# File 'lib/statique.rb', line 57 def url(document_or_path) File.join(configuration.root_url, document_or_path.is_a?(Document) ? document_or_path.path : document_or_path) end |
#version ⇒ Object
43 44 45 |
# File 'lib/statique.rb', line 43 def version VERSION end |