Class: Agave::Dump::Operation::Root

Inherits:
Object
  • Object
show all
Defined in:
lib/agave/dump/operation/root.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Root

Returns a new instance of Root.



8
9
10
11
# File 'lib/agave/dump/operation/root.rb', line 8

def initialize(path)
  @operations = []
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



6
7
8
# File 'lib/agave/dump/operation/root.rb', line 6

def path
  @path
end

Instance Method Details

#add(operation) ⇒ Object



13
14
15
# File 'lib/agave/dump/operation/root.rb', line 13

def add(operation)
  @operations << operation
end

#performObject



17
18
19
# File 'lib/agave/dump/operation/root.rb', line 17

def perform
  operations.each(&:perform)
end