Sha256: 78abbdd81fb90a28bd974d8de12f865737506039e17701bfea37c2e7298c5bcc
Contents?: true
Size: 776 Bytes
Versions: 6
Compression:
Stored size: 776 Bytes
Contents
require "English" module ReactOnRails module Utils def self.object_to_boolean(value) [true, "true", "yes", 1, "1", "t"].include?(value.class == String ? value.downcase : value) end def self.server_rendering_is_enabled? ReactOnRails.configuration.server_bundle_js_file.present? end def self.last_process_completed_successfully? # rubocop:disable Style/NumericPredicate $CHILD_STATUS.exitstatus == 0 end def self.default_server_bundle_js_file_path File.join(ReactOnRails.configuration.generated_assets_dir, ReactOnRails.configuration.server_bundle_js_file) end module Required def required(arg_name) raise ArgumentError, "#{arg_name} is required" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems