Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/health-data-standards/ext/symbol.rb
Instance Method Summary collapse
-
#to_setter ⇒ Object
Will take the current symbol and append an “=” to the end of it.
Instance Method Details
#to_setter ⇒ Object
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 |