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.2.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.1.1 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.1.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.0.6 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.0.5 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.0.4 lib/health-data-standards/ext/symbol.rb
health-data-standards-3.0.3 lib/health-data-standards/ext/symbol.rb
health-data-standards-2.2.1 lib/health-data-standards/ext/symbol.rb
health-data-standards-2.2.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-2.1.4 lib/health-data-standards/ext/symbol.rb
health-data-standards-2.1.3 lib/health-data-standards/ext/symbol.rb
health-data-standards-2.1.2 lib/health-data-standards/ext/symbol.rb
health-data-standards-2.1.1 lib/health-data-standards/ext/symbol.rb
health-data-standards-2.1.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-2.0.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-1.0.1 lib/health-data-standards/ext/symbol.rb
health-data-standards-1.0.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-0.8.1 lib/health-data-standards/ext/symbol.rb
health-data-standards-0.8.0 lib/health-data-standards/ext/symbol.rb
health-data-standards-0.7.1 lib/health-data-standards/ext/symbol.rb