Sha256: 61d669cf2afdb830bdaf8e496b35105bd8240b9617d25aa49cdbbb041a059bc6
Contents?: true
Size: 721 Bytes
Versions: 8
Compression:
Stored size: 721 Bytes
Contents
# frozen_string_literal: true require 'pathname' require 'yaml' module Gamefic module Sdk module Tasks # Common methods for Rake tasks. # module Common attr_reader :directory def initialize directory = '.' @directory = directory end def absolute_path @absolute_path ||= Pathname.new(directory).realpath.to_s end def plot_class GAMEFIC_PLOT_CLASS end def string_to_constant string space = Object string.split('::').each do |part| space = space.const_get(part) end space end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems