Sha256: 3006f91b51a1c6757d744e7120d899523fc44828c8f6771eb112e3aedc56e410
Contents?: true
Size: 572 Bytes
Versions: 3
Compression:
Stored size: 572 Bytes
Contents
require 'nutella_lib/core' require 'nutella_lib/net' require 'nutella_lib/persist' # Gems used across the whole library require 'simple_ruby_mqtt_client' require 'json' require 'set' # NO_EXT gets defined when you require "nutella_lib/noext", which # signals that you don't want any extensions. unless defined?(Nutella::NO_EXT) require 'nutella_lib/ext/kernel' end # Adding a convenience method to the string class # to test if it contains properly formatted JSON class String def is_json? begin !!JSON.parse(self) rescue false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nutella_lib-0.2.2 | lib/nutella_lib.rb |
nutella_lib-0.2.1 | lib/nutella_lib.rb |
nutella_lib-0.2.0 | lib/nutella_lib.rb |