Sha256: 8ddae3ee13fed0ab0e3dc02d22c1b7b3788a6a30a76ff3b969188cc061f91e27
Contents?: true
Size: 504 Bytes
Versions: 42
Compression:
Stored size: 504 Bytes
Contents
# Can use this a few ways, examples: # # Directly usage: # # Lambdagem::Util.say("hi") # # Include it in your class: # # class MyClass # include Lambdagem::Util # # def some_meth # say "some_meth" # end # end # module Lambdagem module Util @@log_level = :debug def log_level=(val) @@log_level = val end def say(message, level=:info) enabled = @@log_level == :debug || level == :debug puts(message) if enabled end extend self end end
Version data entries
42 entries across 42 versions & 1 rubygems