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?
Constructor Details
#initialize(obj) ⇒ ScalarParam
Returns a new instance of ScalarParam.
45 46 47 |
# File 'lib/compendium/param_types.rb', line 45 def initialize(obj, *) super obj end |
Instance Method Details
#scalar? ⇒ Boolean
A scalar param just keeps track of a value with no modifications
50 51 52 |
# File 'lib/compendium/param_types.rb', line 50 def scalar? true end |