Module: Jinx

Defined in:
lib/jinx/version.rb,
lib/jinx/importer.rb,
lib/jinx/metadata.rb,
lib/jinx/resource.rb,
lib/jinx/helpers/os.rb,
lib/jinx/cli/command.rb,
lib/jinx/helpers/log.rb,
lib/jinx/helpers/uid.rb,
lib/jinx/helpers/math.rb,
lib/jinx/helpers/filter.rb,
lib/jinx/helpers/hasher.rb,
lib/jinx/cli/application.rb,
lib/jinx/helpers/boolean.rb,
lib/jinx/helpers/visitor.rb,
lib/jinx/resource/unique.rb,
lib/jinx/metadata/inverse.rb,
lib/jinx/resource/matcher.rb,
lib/jinx/helpers/collector.rb,
lib/jinx/helpers/flattener.rb,
lib/jinx/helpers/lazy_hash.rb,
lib/jinx/helpers/stopwatch.rb,
lib/jinx/metadata/id_alias.rb,
lib/jinx/metadata/property.rb,
lib/jinx/helpers/collection.rb,
lib/jinx/helpers/validation.rb,
lib/jinx/resource/mergeable.rb,
lib/jinx/helpers/associative.rb,
lib/jinx/helpers/transformer.rb,
lib/jinx/metadata/dependency.rb,
lib/jinx/metadata/propertied.rb,
lib/jinx/resource/inversible.rb,
lib/jinx/helpers/pretty_print.rb,
lib/jinx/helpers/partial_order.rb,
lib/jinx/metadata/introspector.rb,
lib/jinx/resource/copy_visitor.rb,
lib/jinx/metadata/java_property.rb,
lib/jinx/resource/match_visitor.rb,
lib/jinx/resource/merge_visitor.rb,
lib/jinx/helpers/multi_enumerator.rb,
lib/jinx/helpers/string_uniquifier.rb,
lib/jinx/resource/uniquifier_cache.rb,
lib/jinx/import/class_path_modifier.rb,
lib/jinx/resource/reference_visitor.rb,
lib/jinx/helpers/case_insensitive_hash.rb,
lib/jinx/metadata/attribute_enumerator.rb,
lib/jinx/resource/reference_enumerator.rb,
lib/jinx/helpers/conditional_enumerator.rb,
lib/jinx/resource/reference_path_visitor.rb,
lib/jinx/metadata/property_characteristics.rb

Defined Under Namespace

Modules: Boolean, CLI, Collection, Collector, Dependency, Hasher, IdAlias, Importer, Introspector, Inverse, Inversible, Math, Mergeable, Metadata, OS, PartialOrder, Propertied, PropertyCharacteristics, Resource, StringUniquifier, UID, Unique Classes: Associative, AttributeEnumerator, CaseInsensitiveHash, ClassPathModifier, ConditionalEnumerator, CopyVisitor, Filter, Flattener, Hashinator, JavaProperty, KeyTransformerHash, LazyHash, Log, MatchVisitor, MergeVisitor, MetadataError, MultiEnumerator, MultilineLogger, Property, ReferenceEnumerator, ReferencePathVisitor, ReferenceVisitor, Stopwatch, Transformer, UniquifierCache, ValidationError, ValueTransformerHash, VisitError, Visitor, Writable

Constant Summary collapse

VERSION =
'2.1.4'

Class Method Summary collapse

Class Method Details

.logger(dev = nil, opts = nil) ⇒ Jinx::MultilineLogger

Returns the global logger.

Parameters:

  • dev (String, IO, nil) (defaults to: nil)

    the optional log file or device

Returns:



17
18
19
20
# File 'lib/jinx/helpers/log.rb', line 17

def self.logger(dev=nil, opts=nil)
  Log.instance.open(dev, opts) if dev or opts
  Log.instance.logger
end