Class: Compendium::Param
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Compendium::Param
show all
- Defined in:
- lib/compendium/param_types.rb
Instance Method Summary
collapse
Instance Method Details
#==(other) ⇒ Object
11
12
13
14
|
# File 'lib/compendium/param_types.rb', line 11
def ==(other)
return true if (value == other rescue false)
super
end
|
#boolean? ⇒ Boolean
6
|
# File 'lib/compendium/param_types.rb', line 6
def boolean?; false; end
|
#date? ⇒ Boolean
7
|
# File 'lib/compendium/param_types.rb', line 7
def date?; false; end
|
#dropdown? ⇒ Boolean
8
|
# File 'lib/compendium/param_types.rb', line 8
def dropdown?; false; end
|
#nil? ⇒ Boolean
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!
18
19
20
|
# File 'lib/compendium/param_types.rb', line 18
def nil?
__getobj__.nil?
end
|
#radio? ⇒ Boolean
9
|
# File 'lib/compendium/param_types.rb', line 9
def radio?; false; end
|