Sha256: 2b9d037b66cd38800c98ba9a39eb2dfc7b923a5c1b8400221a93be77cf3b50b2
Contents?: true
Size: 635 Bytes
Versions: 5
Compression:
Stored size: 635 Bytes
Contents
module Vimpack module Models class Base class << self include ::Vimpack::Utils::File include ::Vimpack::Utils::Git attr_reader :attributes def attributes(*attribute_names) return @attributes if attribute_names.empty? attribute_names = attribute_names.map(&:to_sym) @attributes = attribute_names attr_accessor *attribute_names end end setup_paths(ENV['HOME']) def initialize(attributes = Hash.new) attributes.each do |name, value| send("#{name}=".to_sym, value) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems