Sha256: ae0a56fcd156a0e2838531d599714c45244f091e38973337b5b936f92549b90d

Contents?: true

Size: 549 Bytes

Versions: 8

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

# Symbol helpers
class ::Symbol
  # Handle calling to_var on a Symbol
  #
  # @return     [Symbol] same symbol, normalized if needed
  #
  def to_var
    to_s.to_var
  end

  # Handle calling normalize_type on a Symbol
  #
  # @return     [Symbol] same symbol, normalized if needed
  #
  def normalize_type
    to_s.normalize_type
  end

  # Handle calling normalize_operator on a Symbol
  #
  # @return     [Symbol] same symbol, normalized if needed
  #
  def normalize_operator
    to_s.normalize_operator
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
planter-cli-3.0.7 lib/planter/symbol.rb
planter-cli-3.0.5 lib/planter/symbol.rb
planter-cli-3.0.4 lib/planter/symbol.rb
planter-cli-3.0.3 lib/planter/symbol.rb
planter-cli-3.0.2 lib/planter/symbol.rb
planter-cli-3.0.1 lib/planter/symbol.rb
planter-cli-0.0.4 lib/planter/symbol.rb
planter-cli-0.0.3 lib/planter/symbol.rb