Class: NCPP::Boolean

Inherits:
Struct
  • Object
show all
Defined in:
lib/ncpp/types.rb

Overview

The following are not yet (and may never be) implemented

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#truthyObject

Returns the value of attribute truthy

Returns:

  • (Object)

    the current value of truthy



42
43
44
# File 'lib/ncpp/types.rb', line 42

def truthy
  @truthy
end

Instance Method Details

#false?Boolean

Returns:



44
# File 'lib/ncpp/types.rb', line 44

def false? = !truthy

#true?Boolean

Returns:



43
# File 'lib/ncpp/types.rb', line 43

def true? = truthy