Files

Class/Module Index [+]

Quicksearch

Tins::ExtractLastArgumentOptions

Public Instance Methods

extract_last_argument_options() click to toggle source
# File lib/tins/extract_last_argument_options.rb, line 3
def extract_last_argument_options
  last_argument = last
  if last_argument.respond_to?(:to_hash) and
    options = last_argument.to_hash.dup
  then
    return self[0..-2], options
  else
    return dup, {}
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.