class AutomateIt::Common

Common

Common is the abstract class that most AutomateIt classes inherit from.

Attributes

interpreter[RW]

Interpreter instance for this class.

Public Class Methods

new(options={}) click to toggle source

Calls setup with options for processing.

# File lib/automateit/common.rb, line 12
def initialize(options={})
  setup(options)
end

Public Instance Methods

log() click to toggle source

See Interpreter#log

# File lib/automateit/common.rb, line 26
def log() @interpreter.log end
nitpick(value=nil) click to toggle source

See Interpreter#nitpick

# File lib/automateit/common.rb, line 62
def nitpick(value=nil) @interpreter.nitpick(value) end
noop(value) click to toggle source

See Interpreter#noop

# File lib/automateit/common.rb, line 32
def noop(value) @interpreter.noop(value) end
noop=(value) click to toggle source

See Interpreter#noop=

# File lib/automateit/common.rb, line 29
def noop=(value) @interpreter.noop=(value) end
noop?() click to toggle source

See Interpreter#noop?

# File lib/automateit/common.rb, line 35
def noop?() @interpreter.noop?() end
preview(value=nil) click to toggle source

See Interpreter#preview

# File lib/automateit/common.rb, line 50
def preview(value=nil) @interpreter.preview(value) end
preview=(value) click to toggle source

See Interpreter#preview=

# File lib/automateit/common.rb, line 53
def preview=(value) @interpreter.preview=(value) end
preview?() click to toggle source

See Interpreter#preview?

# File lib/automateit/common.rb, line 47
def preview?() @interpreter.preview?() end
preview_for(message, &block) click to toggle source

See Interpreter#preview_for

# File lib/automateit/common.rb, line 56
def preview_for(message, &block) @interpreter.preview_for(message, &block) end
setup(options={}) click to toggle source

Setup the class. Options:

# File lib/automateit/common.rb, line 18
def setup(options={})
  @interpreter = options[:interpreter] if options[:interpreter]
end
superuser?() click to toggle source

See Interpreter#superuser?

# File lib/automateit/common.rb, line 59
def superuser?() @interpreter.superuser? end
writing(value) click to toggle source

See Interpreter#writing

# File lib/automateit/common.rb, line 41
def writing(value) @interpreter.writing(value) end
writing=(value) click to toggle source

See Interpreter#writing=

# File lib/automateit/common.rb, line 38
def writing=(value) @interpreter.writing=(value) end
writing?() click to toggle source

See Interpreter#writing?

# File lib/automateit/common.rb, line 44
def writing?() @interpreter.writing?() end