class Dry::Core::BasicObject
@since 0.8.0
BasicObject
def self.const_missing(name)
- See: https://ruby-doc.org/core/Module.html#method-i-const_missing -
Other tags:
- Api: - private
Other tags:
- Since: - 0.8.0
Raises:
-
(NameError)
- if the constant cannot be found
Returns:
-
(Object, Module)
- the constant
Parameters:
-
name
(Symbol
) -- the constant name
def self.const_missing(name) ::Object.const_get(name) end
def __inspect; end
- Api: - private
Other tags:
- Since: - 0.8.0
def __inspect; end
def class
- See: http://ruby-doc.org/core/Object.html#method-i-class -
Other tags:
- Since: - 0.8.0
def class (class << self; self; end).superclass end
def object_id
- See: http://ruby-doc.org/core/Object.html#method-i-object_id -
Other tags:
- Since: - 0.8.0
Returns:
-
(Fixnum)
- the object id
def object_id __id__ end
def pretty_print(printer)
- See: https://ruby-doc.org/stdlib/libdoc/pp/rdoc/PP.html -
Other tags:
- Since: - 0.8.0
Returns:
-
(String)
- the pretty-printable inspection of the object
Parameters:
-
printer
(PP
) -- the Pretty Printable printer
def pretty_print(printer) printer.text(inspect) end
def respond_to?(method_name, include_all = false) # rubocop:disable Style/OptionalBooleanParameter
- See: http://ruby-doc.org/core/Object.html#method-i-respond_to-3F -
Other tags:
- Since: - 0.8.0
Returns:
-
(TrueClass, FalseClass)
- the result of the check
def respond_to?(method_name, include_all = false) # rubocop:disable Style/OptionalBooleanParameter respond_to_missing?(method_name, include_all) end
def respond_to_missing?(_method_name, _include_all)
- Api: - private
Other tags:
- Since: - 0.8.0
def respond_to_missing?(_method_name, _include_all) ::Kernel.raise ::NotImplementedError end