Class: Orasaurus::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/orasaurus/generator.rb

Overview

A basic class used for generating files.

Direct Known Subclasses

SqlBuildGenerator, SqlTeardownGenerator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, output_path, output_file_name, build_list) ⇒ Generator

Returns a new instance of Generator.



13
14
15
16
17
18
# File 'lib/orasaurus/generator.rb', line 13

def initialize(name,output_path,output_file_name,build_list)
  @name = name
  @output_path = output_path
  @output_file_name = output_file_name
  @build_list = build_list
end

Instance Attribute Details

#build_listObject (readonly)

Returns the value of attribute build_list.



10
11
12
# File 'lib/orasaurus/generator.rb', line 10

def build_list
  @build_list
end

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/orasaurus/generator.rb', line 10

def name
  @name
end

#output_file_nameObject

Returns the value of attribute output_file_name.



11
12
13
# File 'lib/orasaurus/generator.rb', line 11

def output_file_name
  @output_file_name
end

#output_pathObject

Returns the value of attribute output_path.



11
12
13
# File 'lib/orasaurus/generator.rb', line 11

def output_path
  @output_path
end

Instance Method Details

#full_output_file_nameObject



24
25
26
# File 'lib/orasaurus/generator.rb', line 24

def full_output_file_name
  @output_path + '/' + @output_file_name
end

#generateObject



20
21
22
# File 'lib/orasaurus/generator.rb', line 20

def generate
  puts "undefined"
end