module Nth::AccessMethods

methods to include in base classes:

Public Class Methods

get_ordinal_at(object, ordinal) click to toggle source
# File lib/nth.rb, line 696
def self.get_ordinal_at(object, ordinal)
  n = Nth::get_n_from_string(ordinal)
  return nil if n.nil?
  return object[n-1]
end