Class AutomateIt::Common
In: lib/automateit/common.rb
Parent: Object

Common

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

Methods

log   new   nitpick   noop   noop=   noop?   preview   preview=   preview?   preview_for   setup   superuser?   writing   writing=   writing?  

Included Modules

AutomateIt::Constants

Attributes

interpreter  [RW]  Interpreter instance for this class.

Public Class methods

Calls setup with options for processing.

[Source]

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

Public Instance methods

See Interpreter#log

[Source]

# File lib/automateit/common.rb, line 26
      def log() @interpreter.log end

See Interpreter#nitpick

[Source]

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

See Interpreter#noop

[Source]

# File lib/automateit/common.rb, line 32
      def noop(value) @interpreter.noop(value) end

See Interpreter#noop=

[Source]

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

See Interpreter#noop?

[Source]

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

See Interpreter#preview

[Source]

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

See Interpreter#preview=

[Source]

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

See Interpreter#preview?

[Source]

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

See Interpreter#preview_for

[Source]

# File lib/automateit/common.rb, line 56
      def preview_for(message, &block) @interpreter.preview_for(message, &block) end

Setup the class. Options:

[Source]

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

See Interpreter#superuser?

[Source]

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

See Interpreter#writing

[Source]

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

See Interpreter#writing=

[Source]

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

See Interpreter#writing?

[Source]

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

[Validate]