class Compendium::Param

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/compendium/param_types.rb, line 12
def ==(other)
  return true if (value == other rescue false)
  super
end
boolean?() click to toggle source
# File lib/compendium/param_types.rb, line 7
def boolean?; false; end
date?() click to toggle source
# File lib/compendium/param_types.rb, line 8
def date?; false; end
dropdown?() click to toggle source
nil?() click to toggle source

Need to explicitly delegate nil? to the object, otherwise it's always false This is because SimpleDelegator is a non-nil object, and it only forwards non-defined methods!

# File lib/compendium/param_types.rb, line 19
def nil?
  __getobj__.nil?
end
radio?() click to toggle source
# File lib/compendium/param_types.rb, line 10
def radio?; false; end
scalar?() click to toggle source
# File lib/compendium/param_types.rb, line 6
def scalar?; false; end
to_f() click to toggle source
# File lib/compendium/param_types.rb, line 23
def to_f
  Kernel.Float(__getobj__)
end
to_i() click to toggle source
# File lib/compendium/param_types.rb, line 27
def to_i
  Kernel.Integer(__getobj__)
end