Sha256: 761667c475b4793524a5d66b5244c8adfae27560303a0daacc7b25d38c68271e
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
$LIB_DIR = File.dirname(__FILE__) + '/../lib' $LOAD_PATH.unshift($LIB_DIR) unless $LOAD_PATH.include?($LIB_DIR) require 'date' require 'forwardable' require 'io/console' require 'logger' require 'optparse' require 'set' require 'singleton' require 'time' require 'vedeu/support/log' # Vedeu is a GUI framework for terminal/console applications written in Ruby. # module Vedeu DOCS_URL = 'http://www.rubydoc.info/github/gavinlaking/vedeu/master' extend Forwardable extend self def_delegators Vedeu::Log, :log # @return [Vedeu::Focus] def self.focusable @_focusable ||= Vedeu::Focus end # @return [Vedeu::Repository] def self.geometries @_geometries ||= Vedeu::Repository.new(Vedeu::Geometry) end # @return [Vedeu::Repository] def self.groups @_groups ||= Vedeu::Repository.new(Vedeu::Group) end # @return [Vedeu::Repository] def self.interfaces @_interfaces ||= Vedeu::Repository.new(Vedeu::Interface) end # When Vedeu is included within one of your classes, you should have all # API methods at your disposal. # # @example # class YourClassHere # include Vedeu # ... # def included(receiver) receiver.send(:include, API) receiver.extend(API) end private end # Vedeu require 'vedeu/all' require 'vedeu/support/trace' Vedeu::Trace.call # force tracing # Vedeu::Trace.call({ trace: true })
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.3.1 | lib/vedeu.rb |
vedeu-0.3.0 | lib/vedeu.rb |