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.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Instance Method Summary collapse
Instance Attribute Details
#config_dir ⇒ Object
Returns the value of attribute config_dir.
50 51 52 |
# File 'lib/nero.rb', line 50 def config_dir @config_dir end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
50 51 52 |
# File 'lib/nero.rb', line 50 def @tags end |
Instance Method Details
#add_tag(name, klass: BaseTag, &block) ⇒ Object
56 57 58 59 60 61 62 63 |
# File 'lib/nero.rb', line 56 def add_tag(name, klass: BaseTag, &block) klass, = klass (@tags ||= {})[name] = {klass:}.tap do |h| h[:block] = block if block h[:options] = if end end |