Sha256: b1826b73b0565d5d3d386d60b54013512e5eb4b293cb652cb333cc00e3257fc5

Contents?: true

Size: 580 Bytes

Versions: 13

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

# Module Mutils
module Mutils
  # Module SerializationCore
  module Serialization
    # Module Methods
    module Methods
      # Module Main
      module Main
        def name_tag(name_tag, root = nil)
          self.serializer_name = name_tag
          self.include_root = root
        end

        def class_exists?(class_name)
          klass = Mutils::Lib::Helper.instance.constantize(class_name.to_s)
          klass && defined?(klass) && klass.is_a?(Class)
        rescue StandardError
          false
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mutils-1.3.3 lib/mutils/serialization/methods/main.rb
mutils-1.3.2 lib/mutils/serialization/methods/main.rb
mutils-1.3.1 lib/mutils/serialization/methods/main.rb
mutils-1.3.0 lib/mutils/serialization/methods/main.rb
mutils-1.2.6 lib/mutils/serialization/methods/main.rb
mutils-1.2.5 lib/mutils/serialization/methods/main.rb
mutils-1.2.2 lib/mutils/serialization/methods/main.rb
mutils-1.2.1 lib/mutils/serialization/methods/main.rb
mutils-1.2.0 lib/mutils/serialization/methods/main.rb
mutils-1.1.8 lib/mutils/serialization/methods/main.rb
mutils-1.1.7 lib/mutils/serialization/methods/main.rb
mutils-1.1.6 lib/mutils/serialization/methods/main.rb
mutils-1.1.5 lib/mutils/serialization/methods/main.rb