Class: Plugin

Inherits:
Object show all
Defined in:
lib/ceedling/plugin.rb

Overview

Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(system_objects, name, root_path) ⇒ Plugin

Returns a new instance of Plugin.



12
13
14
15
16
17
18
# File 'lib/ceedling/plugin.rb', line 12

def initialize(system_objects, name, root_path)
  @environment = []
  @ceedling = system_objects
  @plugin_root_path = root_path
  @name = name
  self.setup
end

Instance Attribute Details

#environmentObject (readonly)

Returns the value of attribute environment.



9
10
11
# File 'lib/ceedling/plugin.rb', line 9

def environment
  @environment
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/ceedling/plugin.rb', line 9

def name
  @name
end

#plugin_objectsObject

Returns the value of attribute plugin_objects.



10
11
12
# File 'lib/ceedling/plugin.rb', line 10

def plugin_objects
  @plugin_objects
end

Instance Method Details

#inspectObject

Override to prevent exception handling from walking & stringifying the object variables. Plugin’s object variables are gigantic and produce a flood of output.



22
23
24
# File 'lib/ceedling/plugin.rb', line 22

def inspect
  return this.class.name
end

#setupObject



26
# File 'lib/ceedling/plugin.rb', line 26

def setup; end

#summaryObject



28
# File 'lib/ceedling/plugin.rb', line 28

def summary; end