Class: Neuron::Application::Base

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/neuron/application.rb

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



9
10
11
# File 'lib/neuron/application.rb', line 9

def initialize
  @meta = {}
end

Instance Method Details

#descriptionObject



25
26
27
# File 'lib/neuron/application.rb', line 25

def description
  meta[:description]
end

#keywordsObject



21
22
23
# File 'lib/neuron/application.rb', line 21

def keywords
  meta[:keywords]
end

#metaObject



13
14
15
# File 'lib/neuron/application.rb', line 13

def meta
  @meta[I18n.locale] ||= I18n.t('application.meta').with_indifferent_access
end

#titleObject



17
18
19
# File 'lib/neuron/application.rb', line 17

def title
  meta[:title]
end