Class: Hanami::Utils::BasicObject
- Inherits:
- BasicObject
- Defined in:
- gems/gems/hanami-utils-1.3.3/lib/hanami/utils/basic_object.rb,
gems/gems/hanami-utils-1.3.8/lib/hanami/utils/basic_object.rb
Overview
BasicObject
Direct Known Subclasses
Instance Method Summary collapse
-
#class ⇒ Object
Returns the class for debugging purposes.
-
#inspect ⇒ String
Bare minimum inspect for debugging purposes.
- #instance_of? ⇒ Object
- #is_a? ⇒ Object
- #kind_of? ⇒ Object
-
#object_id ⇒ Fixnum
Alias for id.
-
#pretty_print(printer) ⇒ String
Interface for pp.
-
#respond_to?(method_name, include_all = false) ⇒ TrueClass, FalseClass
Returns true if responds to the given method.
Instance Method Details
#class ⇒ Object
Returns the class for debugging purposes.
Source: | on GitHub
def class (class << self; self; end).superclass end |
#inspect ⇒ String
Bare minimum inspect for debugging purposes.
rubocop:disable Style/FormatStringToken
Source: | on GitHub
def inspect "#<#{self.class}:#{'0x0000%x' % (__id__ << 1)}#{__inspect}>" end |
#instance_of? ⇒ Object
Source: | on GitHub
define_method :instance_of?, ::Object.instance_method(:instance_of?) |
#pretty_print(printer) ⇒ String
Interface for pp
Source: | on GitHub
def pretty_print(printer) printer.text(inspect) end |
#respond_to?(method_name, include_all = false) ⇒ TrueClass, FalseClass
Returns true if responds to the given method.
Source: | on GitHub
def respond_to?(method_name, include_all = false) respond_to_missing?(method_name, include_all) end |