Class: StrongYAML::ConfigString

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, default: nil) ⇒ ConfigString

Returns a new instance of ConfigString.



5
6
7
8
# File 'lib/schema/config_string.rb', line 5

def initialize(name, default: nil)
  @name = name
  @default = default
end

Instance Attribute Details

#defaultObject (readonly)

Returns the value of attribute default.



3
4
5
# File 'lib/schema/config_string.rb', line 3

def default
  @default
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/schema/config_string.rb', line 3

def name
  @name
end