Sha256: 1fcec50cca6d9ff495ae84385d086cfec330c623a9f47ab51a47d016f337c49b
Contents?: true
Size: 665 Bytes
Versions: 3
Compression:
Stored size: 665 Bytes
Contents
require 'singleton' require 'securerandom' module Twee2 class BuildConfig include Singleton attr_accessor :story_format, :story_file, :story_name attr_reader :story_ifid, :story_ifid_specified # Set defaults def initialize @story_name = 'An unnamed story' @story_ifid, @story_ifid_specified = SecureRandom.uuid, false end # Set the IFID - we track when this occurs so that the user can be # nagged for not manually setting it def story_ifid=(value) @story_ifid = value @story_ifid_specified = true end end def self.build_config BuildConfig::instance end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
twee2-0.5.0 | lib/twee2/build_config.rb |
twee2-0.4.2 | lib/twee2/build_config.rb |
twee2-0.4.1 | lib/twee2/build_config.rb |