Method: Doing::Util#duplicable?

Defined in:
lib/doing/util.rb

#duplicable?(obj) ⇒ Boolean

Returns:

  • (Boolean)


85
86
87
88
89
90
91
92
# File 'lib/doing/util.rb', line 85

def duplicable?(obj)
  case obj
  when nil, false, true, Symbol, Numeric
    false
  else
    true
  end
end