Module: Cline::GlobalState::Toggles

Included in:
Cline::GlobalState
Defined in:
lib/cline/global_state/toggles.rb

Overview

Toggles configuration of rules, workflows and skills

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Define all the attributes of the included class

Parameters:

  • base (Class)

    Base class including this mixin



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/cline/global_state/toggles.rb', line 8

def self.included(base)
  base.class_eval do
    # @!group Public API

    # @return [Hash] Remote rules toggle states
    attribute :remote_rules_toggles, Utils::Schema.map(:boolean)

    # @return [Hash] Remote workflow toggle states
    attribute :remote_workflow_toggles, Utils::Schema.map(:boolean)

    # @return [Hash] Global workflow toggle states
    attribute :global_workflow_toggles, Utils::Schema.map(:boolean)

    # @return [Hash] Global Cline rules toggle states
    attribute :global_cline_rules_toggles, Utils::Schema.map(:boolean)

    # @return [Hash] Remote skills toggle states
    attribute :remote_skills_toggles, Utils::Schema.map(:boolean)

    # @return [Hash] Global skills toggle states
    attribute :global_skills_toggles, Utils::Schema.map(:boolean)
  end
end