Sha256: 0ea01a34369d506a08e4a117d4157c887023a5a9d27efe5b74411b7ca3db5e5b

Contents?: true

Size: 198 Bytes

Versions: 5

Compression:

Stored size: 198 Bytes

Contents

module Validic
  class Extra
    def initialize(attrs = {})
      attrs.each do |k, v|
        instance_variable_set("@#{k}", v)
        self.class.send(:attr_reader, k)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
validic-0.6.1 lib/validic/extra.rb
validic-0.6.0 lib/validic/extra.rb
validic-0.5.1 lib/validic/extra.rb
validic-0.5.0 lib/validic/extra.rb
validic-0.4.1 lib/validic/extra.rb