Sha256: 8fd9950691dcab7288bce746bd77b1329adb06a65f8a3e7ef7acf1d8ec1db42e

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

# encoding: utf-8

# =Object
class Object
  # == check boolean type
  def boolean?
    self.is_a?(TrueClass) || self.is_a?(FalseClass)
  end

  # ==get self define methods.
  def my_methods
    public_methods(false) + protected_methods(false) + private_methods(false)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tbpgr_utils-0.0.2 lib/open_classes/object.rb
tbpgr_utils-0.0.1 lib/open_classes/object.rb