Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/ax_elements/mri.rb

Overview

AXElements extensions to the Symbol class

Instance Method Summary collapse

Instance Method Details

#chomp(suffix) ⇒ String

Equivalent to String#chomp, coerces receiver to string first

Returns:

  • (String)


76
77
78
# File 'lib/ax_elements/mri.rb', line 76

def chomp suffix
  to_s.chomp suffix
end