Method: Config#get_bytes
- Defined in:
- lib/hocon/config.rb
#get_bytes(path) ⇒ Object
Gets a value as a size in bytes (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>.
596 597 598 |
# File 'lib/hocon/config.rb', line 596 def get_bytes(path) raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of `Config` must implement `get_bytes` (#{self.class})" end |