Class: Compendium::ScalarParam
- Defined in:
- lib/compendium/param_types.rb
Instance Method Summary collapse
-
#initialize(obj) ⇒ ScalarParam
constructor
A new instance of ScalarParam.
-
#scalar? ⇒ Boolean
A scalar param just keeps track of a value with no modifications.
Methods inherited from Param
#==, #boolean?, #date?, #dropdown?, #nil?, #radio?, #to_f, #to_i
Constructor Details
#initialize(obj) ⇒ ScalarParam
Returns a new instance of ScalarParam.
53 54 55 |
# File 'lib/compendium/param_types.rb', line 53 def initialize(obj, *) super obj end |
Instance Method Details
#scalar? ⇒ Boolean
A scalar param just keeps track of a value with no modifications
58 59 60 |
# File 'lib/compendium/param_types.rb', line 58 def scalar? true end |