Class: SwiftGenerator::Generator
- Inherits:
-
Object
- Object
- SwiftGenerator::Generator
- Defined in:
- lib/swift_generator.rb
Instance Attribute Summary collapse
-
#out_dir_path ⇒ Object
Returns the value of attribute out_dir_path.
-
#spec_file_path ⇒ Object
Returns the value of attribute spec_file_path.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(spec_file_path, out_dir_str) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(spec_file_path, out_dir_str) ⇒ Generator
Returns a new instance of Generator.
12 13 14 15 |
# File 'lib/swift_generator.rb', line 12 def initialize( spec_file_path, out_dir_str ) @spec_file_path = spec_file_path @out_dir_path = out_dir_str # may be nil end |
Instance Attribute Details
#out_dir_path ⇒ Object
Returns the value of attribute out_dir_path.
10 11 12 |
# File 'lib/swift_generator.rb', line 10 def out_dir_path @out_dir_path end |
#spec_file_path ⇒ Object
Returns the value of attribute spec_file_path.
9 10 11 |
# File 'lib/swift_generator.rb', line 9 def spec_file_path @spec_file_path end |
Instance Method Details
#generate ⇒ Object
17 18 19 20 21 |
# File 'lib/swift_generator.rb', line 17 def generate parser = SpecfileParser.new( @spec_file_path ) parser.process_specfile( ) end |