Class: PrestoView::Slice

Inherits:
Object
  • Object
show all
Includes:
Config
Defined in:
lib/presto/view/slice.rb

Constant Summary

Constant Summary

Constants included from PrestoCore::Utils

PrestoCore::Utils::PATH_MODIFIERS, PrestoCore::Utils::STATUS__NOT_FOUND, PrestoCore::Utils::STATUS__OK, PrestoCore::Utils::STATUS__PERMANENT_REDIRECT, PrestoCore::Utils::STATUS__REDIRECT, PrestoCore::Utils::STATUS__RESTRICTED, PrestoCore::Utils::STATUS__SERVER_ERROR

Instance Method Summary (collapse)

Methods included from Config

#compile, #compiler_pool, #engine, #engine_args, #engine_opts, #ext, #layout, #layouts_path, #master_layout, #path, #root, #scope

Methods included from Utils

#engine_supported?, #guess_extension, #guess_layout, #guess_path, #guess_scope_and_context

Methods included from PrestoCore::Utils

build_path, #extract_controllers, is_controller?, normalize_path, rootify_url

Constructor Details

- (Slice) initialize(slice)

A new instance of Slice



6
7
8
9
# File 'lib/presto/view/slice.rb', line 6

def initialize slice
  super
  @slice = slice
end

Instance Method Details

- (Boolean) configurable?

Returns:

  • (Boolean)


11
12
13
# File 'lib/presto/view/slice.rb', line 11

def configurable?
  @slice.configurable?
end