• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Code-Vedas / mutils / 9707403017

28 Jun 2024 04:22AM CUT coverage: 100.0%. Remained the same
9707403017

push

github

niteshpurohit
fix: rubocop >= 1.63.3

205 of 205 relevant lines covered (100.0%)

28368.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/lib/mutils/serialization/methods/main.rb
1
# frozen_string_literal: true
2

3
# Module Mutils
4
module Mutils
2✔
5
  # Module SerializationCore
6
  module Serialization
2✔
7
    # Module Methods
8
    module Methods
2✔
9
      # Module Main
10
      module Main
2✔
11
        def name_tag(name_tag, root = nil)
2✔
12
          self.serializer_name = name_tag
4✔
13
          self.include_root = root
4✔
14
        end
15

16
        def class_exists?(class_name)
2✔
17
          klass = Mutils::Lib::Helper.instance.constantize(class_name.to_s)
12✔
18
          klass && defined?(klass) && klass.is_a?(Class)
10✔
19
        rescue StandardError
20
          false
2✔
21
        end
22
      end
23
    end
24
  end
25
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc