lib/lurker/schema_modifier.rb in lurker-0.6.1 vs lib/lurker/schema_modifier.rb in lurker-0.6.2

- old
+ new

@@ -15,14 +15,16 @@ @data = data end def merge! modifier_klass.new(@schema).merge!(@data) + @schema end def append! schema_klass.new(@schema).append!(@data) + @schema end private def schema_klass @@ -32,12 +34,12 @@ def modifier_klass klass_from_type(@data) end def klass_from_type(anything) - if anything.kind_of?(::Hash) + if anything.is_a?(::Hash) Lurker::SchemaModifier::Hash - elsif anything.kind_of?(::Array) + elsif anything.is_a?(::Array) Lurker::SchemaModifier::Array else Lurker::SchemaModifier::Atom end end