module Zweikopf::Primitive

Public Class Methods

is_primitive_type?(obj) click to toggle source
# File lib/dalton/translation.rb, line 6
def self.is_primitive_type?(obj) # monkey patch to remove DateTime from list of primitives and allow them to be converted. :-/
  [String, Fixnum, Integer, Float, TrueClass, FalseClass].include?(obj.class)
end