Module: Cooltrainer

Defined in:
lib/distorted/floor.rb,
lib/distorted/version.rb,
lib/distorted/click_again.rb,
lib/distorted/media_molecule.rb,
lib/distorted/media_molecule/pdf.rb,
lib/distorted/media_molecule/svg.rb,
lib/distorted/media_molecule/font.rb,
lib/distorted/media_molecule/text.rb,
lib/distorted/media_molecule/image.rb,
lib/distorted/media_molecule/video.rb,
lib/distorted/element_of_media/change.rb,
lib/distorted/modular_technology/vips.rb,
lib/distorted/modular_technology/pango.rb,
lib/distorted/element_of_media/compound.rb,
lib/distorted/modular_technology/ttfunk.rb,
lib/distorted/modular_technology/gstreamer.rb,
lib/distorted/modular_technology/vips/load.rb,
lib/distorted/modular_technology/vips/save.rb,
lib/distorted/modular_technology/vips/foreign.rb

Defined Under Namespace

Modules: DistorteD Classes: Atom, Change, Compound

Constant Summary collapse

BOOLEAN_VALUES =

Fun Ruby Fact™: ‘false` is always object_id 0 skorks.com/2009/09/true-false-and-nil-objects-in-ruby/ irb(main):650:0> true.object_id

> 20

irb(main):651:0> false.object_id

> 0

Set[false, true]
OPTIONPARSER_COERSIONS =

This is defined in writing in a comment in optparse.rb’s RDoc, but I can’t seem to find anywhere it’s available directly in code, so I am going to build my own. Maybe I am missing something obvious, in which case I should use that and get rid of this :) Based on ruby-doc.org/stdlib/libdoc/optparse/rdoc/OptionParser.html#class-OptionParser-label-Type+Coercion

[
  Date,
  DateTime,
  Time,
  URI,
  #Shellwords,  # Stock in optparse, but under autoload. I don't want it.
  String,
  Integer,
  Float,
  Numeric,
  TrueClass,
  FalseClass,
  Array,
  Regexp,
].concat(OptionParser::Acceptables::constants)