Sha256: f988b29fe9ddb101b0a270fec506a718f5bc7962c295ff9fe826f7436c542def

Contents?: true

Size: 573 Bytes

Versions: 16

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

# This module contains convenience methods that expose more directly the command options provided.
module Fcom::OptionsHelpers
  private

  def author
    @options[:author]
  end

  def days
    @options[:days]
  end

  def ignore_case?
    @options.ignore_case?
  end

  def path
    @options[:path]
  end

  def regex_mode?
    @options.regex?
  end

  def debug?
    @options.debug?
  end

  def development?
    @options.development?
  end

  def repo
    @options[:repo]
  end

  def search_string
    @options.arguments.first
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fcom-0.14.0 lib/fcom/options_helpers.rb
fcom-0.13.0 lib/fcom/options_helpers.rb
fcom-0.12.1 lib/fcom/options_helpers.rb
fcom-0.12.0 lib/fcom/options_helpers.rb
fcom-0.11.0 lib/fcom/options_helpers.rb
fcom-0.10.0 lib/fcom/options_helpers.rb
fcom-0.9.0 lib/fcom/options_helpers.rb
fcom-0.8.0 lib/fcom/options_helpers.rb
fcom-0.7.1 lib/fcom/options_helpers.rb
fcom-0.7.0 lib/fcom/options_helpers.rb
fcom-0.6.0 lib/fcom/options_helpers.rb
fcom-0.5.1 lib/fcom/options_helpers.rb
fcom-0.5.0 lib/fcom/options_helpers.rb
fcom-0.4.3 lib/fcom/options_helpers.rb
fcom-0.4.2 lib/fcom/options_helpers.rb
fcom-0.4.1 lib/fcom/options_helpers.rb