Sha256: c66b70a11af65245bffb1b9760c8986cb4e9f5caa3faf7ba889bf9cddbe6d307
Contents?: true
Size: 329 Bytes
Versions: 4
Compression:
Stored size: 329 Bytes
Contents
# frozen_string_literal: true # Base Plugin class # Inherit this class if you adding a new plugin module HeartTop module Plugin class Base class NotImplementedError < StandardError; end def ping raise NotImplementedError, "`##{__method__}` must be implemented in subclass" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
heart_top-0.3.2 | lib/heart_top/plugin/base.rb |
heart_top-0.3.1 | lib/heart_top/plugin/base.rb |
heart_top-0.3.0 | lib/heart_top/plugin/base.rb |
heart_top-0.2.0 | lib/heart_top/plugin/base.rb |