Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/health-data-standards/ext/symbol.rb

Instance Method Summary collapse

Instance Method Details

#to_setterObject

Will take the current symbol and append an “=” to the end of it. So :bacon will become :bacon=. It is assumed that this would be passed to Object#send to set the value of something



5
6
7
# File 'lib/health-data-standards/ext/symbol.rb', line 5

def to_setter
  (self.to_s + '=').to_sym
end