module ChainedValidation::Rules

Public Instance Methods

ends_with(piece) click to toggle source
# File lib/chained_validation/rules/ends_with.rb, line 3
def ends_with(piece)
  @results.push(ends_with: @object.match(/(\w+)\Z/)[0] == piece)
  self
end