Sha256: 9ec652c8b8061b7f07fdd6c538401798b53f3523a1fb0dff0f89f655337f7244

Contents?: true

Size: 417 Bytes

Versions: 2

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Rubysmith
  module CLI
    module Actions
      # Stores Repl Type Completor flag.
      class RTC < Sod::Action
        include Import[:settings]

        description "Add Repl Type Completor gem."

        on "--[no-]rtc"

        default { Container[:settings].build_rtc }

        def call(value = nil) = settings.build_rtc = value
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-7.1.0 lib/rubysmith/cli/actions/rtc.rb
rubysmith-7.0.0 lib/rubysmith/cli/actions/rtc.rb