Method: Config#get_memory_size
- Defined in:
- lib/hocon/config.rb
#get_memory_size(path) ⇒ Object
Gets a value as an amount of memory (parses special strings like “128M”). If the value is already a number, then it’s left alone; if it’s a string, it’s parsed understanding unit suffixes such as “128K”, as documented in the <a href=“github.com/typesafehub/config/blob/master/HOCON.md”>the spec</a>.
620 621 622 |
# File 'lib/hocon/config.rb', line 620 def get_memory_size(path) raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of `Config` must implement `get_memory_size`path(#{self.class})" end |