Sha256: 6bca99703636c0ffd6380e430dd6493cdd6503e4d1ff070124e2994a946ff5a6
Contents?: true
Size: 261 Bytes
Versions: 2
Compression:
Stored size: 261 Bytes
Contents
module Maxwell module Agent module DynamicAttributes def method_missing(method_name, *args) singleton_class. class_eval { attr_accessor method_name.to_s.gsub(/=$/, '') } send(method_name, *args) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
maxwell_agent-0.0.5 | lib/maxwell/agent/dynamic_attributes.rb |
maxwell_agent-0.0.1 | lib/maxwell/agent/dynamic_attributes.rb |