README.md in anyway_config-2.6.1 vs README.md in anyway_config-2.6.2
- old
+ new
@@ -156,10 +156,10 @@
class MyConfig < Anyway::Config
attr_config :host, :port, :url, :meta
# override writer to handle type coercion
def meta=(val)
- super JSON.parse(val)
+ super(JSON.parse(val))
end
# or override reader to handle missing values
def url
super || (self.url = "#{host}:#{port}")