Sha256: 0ec380ba13996628593b124f9fd1baa0bb5e5aceab61b06e1b558b72c81bdf3a
Contents?: true
Size: 325 Bytes
Versions: 1
Compression:
Stored size: 325 Bytes
Contents
# encoding: utf-8 module Ppds class ClassFactory def initialize(data=[]) for att in data set(att.name.gsub(/-/,'_'), att.value) end end def get(name) instance_variable_get("@#{name}") end def set(name, value) instance_variable_set("@#{name}", value) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grumblr-2.4.2 | lib/ppds/class_factory.rb |