Class: Trundle

Inherits:
Object
  • Object
show all
Defined in:
lib/trundle.rb,
lib/trundle/version.rb

Defined Under Namespace

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

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.configObject



28
29
30
# File 'lib/trundle.rb', line 28

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

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

Yields:



24
25
26
# File 'lib/trundle.rb', line 24

def self.configure
  yield config
end

.open(path) ⇒ Object



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

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