Method: Wrapper.wrapped?

Defined in:
lib/formula_eval/wrapper.rb

.wrapped?(obj) ⇒ Boolean

Returns:

  • (Boolean)


144
145
146
# File 'lib/formula_eval/wrapper.rb', line 144

def self.wrapped?(obj)
  [ArrayWrapper,HashWrapper].any? { |cls| obj.kind_of?(cls) }
end