Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/planter/symbol.rb

Overview

Symbol helpers

Instance Method Summary collapse

Instance Method Details

#normalize_operatorSymbol

Handle calling normalize_operator on a Symbol

Returns:

  • (Symbol)

    same symbol, normalized if needed



25
26
27
# File 'lib/planter/symbol.rb', line 25

def normalize_operator
  to_s.normalize_operator
end

#normalize_typeSymbol

Handle calling normalize_type on a Symbol

Returns:

  • (Symbol)

    same symbol, normalized if needed



17
18
19
# File 'lib/planter/symbol.rb', line 17

def normalize_type
  to_s.normalize_type
end

#to_varSymbol

Handle calling to_var on a Symbol

Returns:

  • (Symbol)

    same symbol, normalized if needed



9
10
11
# File 'lib/planter/symbol.rb', line 9

def to_var
  to_s.to_var
end