Module: Bioroebe::VerboseTruth
- Defined in:
- lib/bioroebe/toplevel_methods/verbose.rb
Overview
#
Bioroebe::VerboseTruth
We use a simplified approach for adding VerboseTruth supported to the BioRoebe project, by simply defining it as a submodule.
#
Class Method Summary collapse
-
.[](i, append_dot = true) ⇒ Object
# === Bioroebe::VerboseTruth[] ========================================================================= #.
Class Method Details
.[](i, append_dot = true) ⇒ Object
#
Bioroebe::VerboseTruth[]
#
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/bioroebe/toplevel_methods/verbose.rb', line 38 def self.[](i, append_dot = true) if i.is_a? Array i = i.first end result = ''.dup case i when 'true', true result << 'Yes' when 'false', false result << 'No' end result << '.' if append_dot result end |