Module Kernel
In: lib/sketches/extensions/kernel.rb
Kernel dot/f_6.png

Methods

Public Instance methods

Names the sketch with the specified id with the specified name.

  name_sketch 2, :foo

[Source]

# File lib/sketches/extensions/kernel.rb, line 52
  def name_sketch(id,name)
    Sketches.name(id,name)
  end

Saves the sketch with the specified id_or_name to the specified path.

  save_sketch 2, 'path/to/example.rb'

  save_sketch :foo, 'path/to/foo.rb'

[Source]

# File lib/sketches/extensions/kernel.rb, line 64
  def save_sketch(id_or_name,path)
    Sketches.save(id_or_name,path)
  end

Edits the sketch with the specified id_or_name. If no sketch exists with the specified id_or_name, one will be created.

  sketch 2

  sketch :foo

[Source]

# File lib/sketches/extensions/kernel.rb, line 34
  def sketch(id_or_name=nil)
    Sketches.sketch(id_or_name)
  end

Creates a new sketch using the specified path.

  sketch_from 'path/to/foo.rb'

[Source]

# File lib/sketches/extensions/kernel.rb, line 43
  def sketch_from(path)
    Sketches.from(path)
  end

Print out all of the sketches.

[Source]

# File lib/sketches/extensions/kernel.rb, line 71
  def sketches
    Sketches.print
  end

[Validate]