Class: Pedia::Config::Option
- Inherits:
-
Object
- Object
- Pedia::Config::Option
- Defined in:
- lib/wp/config.rb
Overview
DSL ###############################################################
Instance Method Summary collapse
Instance Method Details
#init ⇒ Object
20 21 22 23 24 25 |
# File 'lib/wp/config.rb', line 20 def init case type when :dir File.mkdir value end end |
#value ⇒ Object
16 17 18 |
# File 'lib/wp/config.rb', line 16 def value @value ||= @default end |