Class: Slinky::ConfigReader::ConfigEntry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type, default) ⇒ ConfigEntry

Returns a new instance of ConfigEntry.



18
19
20
21
22
# File 'lib/slinky/config_reader.rb', line 18

def initialize(name, type, default)
  @name = name
  @type = type
  @default = default
end

Instance Attribute Details

#defaultObject (readonly)

Returns the value of attribute default.



17
18
19
# File 'lib/slinky/config_reader.rb', line 17

def default
  @default
end

#nameObject (readonly)

Returns the value of attribute name.



17
18
19
# File 'lib/slinky/config_reader.rb', line 17

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



17
18
19
# File 'lib/slinky/config_reader.rb', line 17

def type
  @type
end