Module: ObjectToBExtension

Defined in:
app/models/object_to_b_extension.rb

Instance Method Summary collapse

Instance Method Details

#to_bObject

This method converts the object to the boolean type. The method returns either true or false.



6
7
8
# File 'app/models/object_to_b_extension.rb', line 6

def to_b 
  !! self
end