Class: Compendium::ScalarParam

Inherits:
Param
  • Object
show all
Defined in:
lib/compendium/param_types.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


58
59
60
# File 'lib/compendium/param_types.rb', line 58

def scalar?
  true
end