Class: Orasaurus::Generator
- Inherits:
-
Object
- Object
- Orasaurus::Generator
- Defined in:
- lib/orasaurus/generator.rb
Overview
A basic class used for generating files.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#build_list ⇒ Object
readonly
Returns the value of attribute build_list.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#output_file_name ⇒ Object
Returns the value of attribute output_file_name.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
Instance Method Summary collapse
- #full_output_file_name ⇒ Object
- #generate ⇒ Object
-
#initialize(name, output_path, output_file_name, build_list) ⇒ Generator
constructor
A new instance of Generator.
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_list ⇒ Object (readonly)
Returns the value of attribute build_list.
10 11 12 |
# File 'lib/orasaurus/generator.rb', line 10 def build_list @build_list end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/orasaurus/generator.rb', line 10 def name @name end |
#output_file_name ⇒ Object
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_path ⇒ Object
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_name ⇒ Object
24 25 26 |
# File 'lib/orasaurus/generator.rb', line 24 def full_output_file_name @output_path + '/' + @output_file_name end |
#generate ⇒ Object
20 21 22 |
# File 'lib/orasaurus/generator.rb', line 20 def generate puts "undefined" end |