Class: Profig::Item

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

Overview

An individual piece of configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, opts) ⇒ Item



11
12
13
14
15
# File 'lib/profig/config.rb', line 11

def initialize(name, opts)
  @name = name
  opts = {} if opts.nil?
  @opts = opts
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/profig/config.rb', line 8

def name
  @name
end

#optsObject (readonly)

Returns the value of attribute opts.



9
10
11
# File 'lib/profig/config.rb', line 9

def opts
  @opts
end