Sha256: 51645e97a07ed750f6a662dd619ab1a1cacd01af6bf3e8c91aa8f092d41a00af

Contents?: true

Size: 415 Bytes

Versions: 8

Compression:

Stored size: 415 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(boolean) = settings.build_rtc = boolean
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/cli/actions/rtc.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/rtc.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/rtc.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/rtc.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/rtc.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/rtc.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/rtc.rb
rubysmith-7.2.0 lib/rubysmith/cli/actions/rtc.rb