Module: ShadyDB::Extensions::String::Helpers

Included in:
String
Defined in:
lib/shadydb/extensions/string/helpers.rb

Instance Method Summary collapse

Instance Method Details

#readerObject



8
9
10
# File 'lib/shadydb/extensions/string/helpers.rb', line 8

def reader
  writer? ? gsub("=", "") : self
end

#writer?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/shadydb/extensions/string/helpers.rb', line 12

def writer?
  include?("=")
end