Module: Puffer::Extensions::String

Defined in:
lib/puffer/extensions/core.rb

Instance Method Summary collapse

Instance Method Details

#plural?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/puffer/extensions/core.rb', line 15

def plural?
  self.pluralize == self
end

#singular?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/puffer/extensions/core.rb', line 11

def singular?
  self.singularize == self
end