Sha256: fee5e432a974c6da2e00d481265c7b6fd31639851f83ae36d0ccd338e956b9cf

Contents?: true

Size: 443 Bytes

Versions: 6

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

# Open the Kernel module to define methods for any class.
module Kernel
  extend Gem::Deprecate

  def attr_accessor_init(*variable_names)
    Selfies.generate_initializer(self, true, *variable_names)
  end

  def attr_reader_init(*variable_names)
    Selfies.generate_initializer(self, false, *variable_names)
  end

  def selfie(*method_names)
    Selfies.generate_class_methods(self, *method_names)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
selfies-1.5.1 lib/kernel.rb
selfies-1.5.0 lib/kernel.rb
selfies-1.4.2 lib/kernel.rb
selfies-1.4.1 lib/kernel.rb
selfies-1.4.0 lib/kernel.rb
selfies-1.3.1 lib/kernel.rb