Sha256: 005f7651d31f6c36af173ca0537c0b6b42e3ec469eac6449c79b72b86d526776

Contents?: true

Size: 260 Bytes

Versions: 62

Compression:

Stored size: 260 Bytes

Contents

class Symbol
  # 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
  def to_setter
    (self.to_s + '=').to_sym
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
health-data-standards-3.5.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.4.6 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.4.5 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.4.4 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.4.3 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.4.2 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.4.1 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.4.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.2.12 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.3.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.2.11 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.2.10 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.2.8 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.2.7 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.2.6 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.2.5 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.2.4 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.2.3 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.2.2 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.2.1 lib/health-data-standards/ext/symbol.rb