Sha256: 468ccde0b73bef65e70b40e2b53c4fd95bcd79687d94050f2386c2bb6927931f
Contents?: true
Size: 525 Bytes
Versions: 25
Compression:
Stored size: 525 Bytes
Contents
module Isomorfeus module Puppetmaster class ConsoleMessage def initialize(message_hash = {}) @message_hash = message_hash ? message_hash : {} end def method_missing(name, *args) if %i[column_number level location line_number text].include?(name) @message_hash[name.to_s] elsif %i[location url].include?(name) @message_hash['location'] ? @message_hash['location']['url'] : '' else super(name, *args) end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems