Sha256: 22fd74a3fc172f3ea6a451055f4ec4e6f081cabe10179b4768d3e3af40172fdf
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
# frozen_string_literal: true require 'conifer/version' require 'conifer/file' require 'active_support/all' module Conifer extend ActiveSupport::Concern included do def conifer self.class.__conifer end end class_methods do attr_reader :__conifer def conifer(file, prefix: nil, dir: nil) directory = dir.presence || ::File.expand_path(::File.dirname(caller_locations.first.path)) @__conifer = Conifer::File.new(file, prefix: prefix, dir: directory) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
conifer-0.1.0 | lib/conifer.rb |