Class: Toto::Config
Constant Summary collapse
- Defaults =
{ :author => ENV['USER'], # blog author :title => Dir.pwd.split('/').last, # site title :root => "index", # site index :url => "http://127.0.0.1", :date => lambda {|now| now.strftime("%d/%m/%Y") }, # date function :markdown => :smart, # use markdown :disqus => false, # disqus name :summary => 150, # length of summary :ext => 'txt' # extension for articles }
Instance Method Summary collapse
- #[](key, *args) ⇒ Object
-
#initialize(obj) ⇒ Config
constructor
extension for articles.
Constructor Details
Instance Method Details
#[](key, *args) ⇒ Object
242 243 244 245 |
# File 'lib/toto.rb', line 242 def [] key, *args val = super(key) val.respond_to?(:call) ? val.call(*args) : val end |