Skip to content

Built-ins - Object #1

Open
Open
@swistak35

Description

@swistak35

BasicObject

  • == -- bool
  • ! -- bool
  • != -- bool
  • object_id -- integer
  • id -- integer
  • send / send - send method
  • equal? -- bool
  • instance_eval
  • instance_exec
  • method_missing
  • singleton_method_added
  • singleton_method_removed
  • singleton_method_undefined

Object

  • !~ operator -- boolean
  • <=> -- integer or nil
  • === -- bool
  • =~ -- ???
  • class
  • clone(freeze: true) -- an_object
  • define_singleton_method
  • display(port=$>) -- nil
  • dup -- an_object
  • enum_for
  • equal? -- bool
  • eql? -- bool
  • extend
  • frozen? -- bool
  • inspect -- string
  • instance_of?(class) -- bool
  • instance_variable_defined?(symbol/string) -- bool
  • instance_variable_get(string/symbol)
  • instance_variable_set(string/symbol, obj)
  • instance_variables -- array of symbols
  • is_a?(class) -- bool
  • itself -- an_object
  • kind_of?(class) -- bool
  • method(sym)
  • methods(regular=true) -- array of symbols
  • nil? -- bool
  • private_methods(all=true) -- array of symbols
  • protected_methods(all=true) -- array of symbols
  • public_method(sym)
  • public_methods(all=true) -- array of symbols
  • public_send(symbol/string [, args...])
  • remove_instance_variable(symbol)
  • respond_to?(symbol/string, include_all=false) -- bool
  • respond_to_missing?(symbol/string, include_all) -- bool
  • singleton_class
  • singleton_method(sym)
  • singleton_methods
  • taint -- an_object
  • tainted? -- bool
  • tap {|x| block } -- an_object
  • to_enum
  • to_s -- string
  • trust -- an_object
  • untaint -- an_object
  • untrust -- an_object
  • untrusted? -- bool
  • yield_self {|x| block } -- result of the block

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions