Method: Scriptster.configure

Defined in:
lib/scriptster.rb

.configure {|c| ... } ⇒ Object

Use this method to reconfigure the library.

Examples:

Scriptster::configure do |conf|
  conf.name = "my-script"
  conf.colours = :light
  conf.timestamps = false
end

Yields:

See Also:



71
72
73
74
75
# File 'lib/scriptster.rb', line 71

def self.configure
  c = Configuration.new
  yield c
  c.apply
end