Module: Tweezer

Defined in:
lib/tweezer.rb,
lib/tweezer/cli.rb,
lib/tweezer/gem.rb,
lib/tweezer/errors.rb,
lib/tweezer/gemfile.rb,
lib/tweezer/version.rb,
lib/tweezer/ast_helper.rb

Defined Under Namespace

Modules: ASTHelper Classes: CLI, Gem, Gemfile

Constant Summary collapse

UNPARENTHESIZED_METHODS =
Set[*i(source ruby git path group platforms gem)]
GemAlreadyPresent =
Class.new(RuntimeError)
GemNotPresent =
Class.new(RuntimeError)
VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.unparenthesized_method?(method) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/tweezer.rb', line 6

def self.unparenthesized_method?(method)
  UNPARENTHESIZED_METHODS.include?(method)
end