Sha256: 944f163b17ef4197957fef397255e254b903dff9fe55ff469d8d771fbf6981da

Contents?: true

Size: 509 Bytes

Versions: 12

Compression:

Stored size: 509 Bytes

Contents

module CLIUtils
  # The generic base class for a Pref
  # Behavior.
  class PrefBehavior
    include Messaging

    # Holds the parameters associated with
    # this behavior.
    # @return [Hash]
    attr_accessor :parameters

    # Evaluate the Behavior!
    # @param [String] text
    # @raise [StandardError] if the subclass
    #   doesn't implement this method.
    # @return [void]
    def evaluate(text = '')
      fail "`evaluate` method not implemented on caller: #{ self.class }"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cliutils-2.2.6 lib/cliutils/prefs/pref_behaviors/pref_behavior.rb
cliutils-2.2.5 lib/cliutils/prefs/pref_behaviors/pref_behavior.rb
cliutils-2.2.4 lib/cliutils/prefs/pref_behaviors/pref_behavior.rb
cliutils-2.2.3 lib/cliutils/prefs/pref_behaviors/pref_behavior.rb
cliutils-2.2.2 lib/cliutils/prefs/pref_behaviors/pref_behavior.rb
cliutils-2.2.1 lib/cliutils/prefs/pref_behaviors/pref_behavior.rb
cliutils-2.2.0 lib/cliutils/prefs/pref_behaviors/pref_behavior.rb
cliutils-2.1.4 lib/cliutils/prefs/pref_behaviors/pref_behavior.rb
cliutils-2.1.3 lib/cliutils/prefs/pref_behaviors/pref_behavior.rb
cliutils-2.1.2 lib/cliutils/prefs/pref_behaviors/pref_behavior.rb
cliutils-2.1.1 lib/cliutils/prefs/pref_behaviors/pref_behavior.rb
cliutils-2.1.0 lib/cliutils/prefs/pref_behaviors/pref_behavior.rb