Module: Trundle

Defined in:
lib/trundle.rb,
lib/trundle/version.rb

Defined Under Namespace

Modules: InfoAccessors Classes: AssetStore, Config, InfoStore, Key, NamespaceList, NamespaceNotDefined, NamespacedAttributes, TextBundle, TextStore

Constant Summary collapse

VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.configObject



26
27
28
# File 'lib/trundle.rb', line 26

def self.config
  @config ||= Config.new
end

.configure {|config| ... } ⇒ Object

Yields:



22
23
24
# File 'lib/trundle.rb', line 22

def self.configure
  yield config
end

.open(path) ⇒ Object



17
18
19
20
# File 'lib/trundle.rb', line 17

def self.open(path)
  return TextBundle.new(path, &Proc.new) if block_given?
  TextBundle.new(path)
end