Class: Charsi::App

Inherits:
Object
  • Object
show all
Defined in:
lib/charsi/app.rb

Overview

Standard app class.

This class is used to build the app. It includes all utility methods to be acccessed through the templating.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeApp

Returns a new instance of App.



9
10
11
12
13
14
# File 'lib/charsi/app.rb', line 9

def initialize
  @cache_slug = Time.now.to_i
  @config = Configuration.new

  load_helpers
end

Instance Attribute Details

#cache_slugObject (readonly)

Returns the value of attribute cache_slug.



7
8
9
# File 'lib/charsi/app.rb', line 7

def cache_slug
  @cache_slug
end