Sha256: 5c963995ac70485b5c138a31458644c6209db8014bebadfed125c2e925ccb01e

Contents?: true

Size: 171 Bytes

Versions: 12

Compression:

Stored size: 171 Bytes

Contents

class Symbol

  def plain?
    c = to_s[-1,1]
    !(c == '=' || c == '?')
  end

  def setter?
    to_s[-1,1] == '='
  end

  def query?
    to_s[-1,1] == '?'
  end

end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
facets-2.8.4 lib/core/facets/symbol/plain.rb
facets-2.8.3 lib/core/facets/symbol/plain.rb
facets-2.8.2 lib/core/facets/symbol/plain.rb
facets-2.8.1 lib/core/facets/symbol/plain.rb
facets-2.8.0 lib/core/facets/symbol/plain.rb
facets-2.7.0 lib/core/facets/symbol/plain.rb
facets-2.6.0 lib/core/facets/symbol/plain.rb
facets-2.5.1 lib/core/facets/symbol/plain.rb
facets-2.5.0 lib/core/facets/symbol/plain.rb
facets-2.4.5 lib/core/facets/symbol/plain.rb
facets-2.5.2 lib/core/facets/symbol/plain.rb
mack-facets-0.8.2 lib/gems/facets-2.4.5/lib/core/facets/symbol/plain.rb