Sha256: 17a7029ec1928eff374ca1406cc5a001845ac6c75b8d0de7e3f79a778943d66a

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

class Module

  def my_methods(include_private = true)
    public_instance_methods.tap do |methods|
      return methods + private_instance_methods + protected_instance_methods if include_private
    end
  end

  def unextendable
    @unextendable = true
  end

  def unextendable?
    !!@unextendable
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unextendable-0.1.7 lib/unextendable/module.rb