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-4.3.5 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.3.4 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.3.3 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.3.2 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.3.1 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.3.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.2.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.1.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.0.6 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.0.5 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.0.4 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.0.3 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.0.2 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.0.1 lib/health-data-standards/ext/symbol.rb
health-data-standards-4.0.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.7.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.6.1 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.5.3 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.5.2 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.5.1 lib/health-data-standards/ext/symbol.rb