Method: Elasticonf::Config#const_name=

Defined in:
lib/elasticonf/config.rb

#const_name=(value) ⇒ Object



52
53
54
55
56
57
# File 'lib/elasticonf/config.rb', line 52

def const_name=(value)
  unless [String, Symbol].include?(value.class)
    raise ArgumentError, "String or Symbol expected #{value.class} given"
  end
  @const_name = value.to_s
end