decko-commons/decko

View on GitHub
card/config/initializers/01_core_extensions/integer.rb

Summary

Maintainability
A
0 mins
Test Coverage
require_relative "persistent_identifier"

module CoreExtensions
  # extensions to Integer class
  module Integer
    include PersistentIdentifier

    # interpret integer as id
    def cardname
      Card::Lexicon.name self
    end
  end
end