Sha256: 278cb3879d0aeb578a77fa6c9f0d35cdc39859c52fc7b96f6516226ea0f984c8
Contents?: true
Size: 461 Bytes
Versions: 3
Compression:
Stored size: 461 Bytes
Contents
module Lutaml module Model module Loggable def self.included(base) base.define_method :warn_auto_handling do |name| caller_file = File.basename(caller_locations(2, 1)[0].path) caller_line = caller_locations(2, 1)[0].lineno str = "[Lutaml::Model] WARN: `#{name}` is handled by default. No need to explecitly define at `#{caller_file}:#{caller_line}`" warn(str) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lutaml-model-0.5.3 | lib/lutaml/model/loggable.rb |
lutaml-model-0.5.2 | lib/lutaml/model/loggable.rb |
lutaml-model-0.5.1 | lib/lutaml/model/loggable.rb |