Class: BasicObject

Defined in:
lib/arukamo/basic_object.rb

Overview

Extend Ruby's BasicObject class.

Direct Known Subclasses

Object

Instance Method Summary collapse

Instance Method Details

#aru?Boolean

Returns `true` if exist.

Examples:

Does it exist?

o = BasicObject.new
o.aru? # => false

Returns:

  • (Boolean)

    `true` if exist.


8
9
10
# File 'lib/arukamo/basic_object.rb', line 8

def aru?
  false
end

#nai?Boolean

Returns `false` unless exist.

Examples:

Does not exist?

o = BasicObject.new
o.nai? # => true

Returns:

  • (Boolean)

    `false` unless exist.


17
18
19
# File 'lib/arukamo/basic_object.rb', line 17

def nai?
  !aru?
end