Method: CrowiModelFactory#initialize
- Defined in:
- lib/crowi/client/model/crowi_model.rb
#initialize ⇒ CrowiModelFactory
Constractor
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/crowi/client/model/crowi_model.rb', line 17 def initialize @makers = {} @makers.default = Proc.new { |param| next nil if param == nil case param when Array, String, Integer then ret = param when FalseClass then ret = false when TrueClass then ret = true end next ret } end |