Sha256: 499146cb4db0598114cf10336dd05c2bdb9e6baee9ced4a7132df00c290c7dc7
Contents?: true
Size: 428 Bytes
Versions: 124
Compression:
Stored size: 428 Bytes
Contents
# frozen_string_literal: true # Include this into any class to expose a `source_path` class and instance method, which will return # the absolute file system path to the current object. module Proscenium::SourcePath def self.included(base) base.extend ClassMethods end module ClassMethods def source_path @source_path ||= name.nil? ? nil : Pathname.new(const_source_location(name).first) end end end
Version data entries
124 entries across 124 versions & 1 rubygems