Class: Nero::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/nero.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#config_dirObject

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_options = klass

  tags[name] = {klass:}.tap do |h|
    h[:block] = block if block
    h[:options] = klass_options if klass_options
  end
end

#tagsObject



102
103
104
# File 'lib/nero.rb', line 102

def tags
  @tags ||= {}
end