Class: Nero::Configuration
- Inherits:
-
Object
- Object
- Nero::Configuration
- Defined in:
- lib/nero.rb
Instance Attribute Summary collapse
-
#config_dir ⇒ Object
Returns the value of attribute config_dir.
Instance Method Summary collapse
Instance Attribute Details
#config_dir ⇒ Object
Returns the value of attribute config_dir.
100 101 102 |
# File 'lib/nero.rb', line 100 def config_dir @config_dir end |
Instance Method Details
#add_tag(name, klass: BaseTag, &block) ⇒ Object
110 111 112 113 114 115 116 117 |
# File 'lib/nero.rb', line 110 def add_tag(name, klass: BaseTag, &block) klass, = klass [name] = {klass:}.tap do |h| h[:block] = block if block h[:options] = if end end |
#tags ⇒ Object
102 103 104 |
# File 'lib/nero.rb', line 102 def @tags ||= {} end |