Class: GoonModelGen::Converter::ConvFile
- Inherits:
-
Object
- Object
- GoonModelGen::Converter::ConvFile
- Defined in:
- lib/goon_model_gen/converter/conv_file.rb
Instance Attribute Summary collapse
-
#converter_package_path ⇒ Object
readonly
String.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#payload_convs ⇒ Object
[XxxxConv].
-
#result_convs ⇒ Object
[XxxxConv].
Instance Method Summary collapse
- #basename ⇒ Object
-
#initialize(path, converter_package_path) ⇒ ConvFile
constructor
A new instance of ConvFile.
Constructor Details
#initialize(path, converter_package_path) ⇒ ConvFile
Returns a new instance of ConvFile.
10 11 12 13 |
# File 'lib/goon_model_gen/converter/conv_file.rb', line 10 def initialize(path, converter_package_path) @path = path @converter_package_path = converter_package_path end |
Instance Attribute Details
#converter_package_path ⇒ Object (readonly)
String
7 8 9 |
# File 'lib/goon_model_gen/converter/conv_file.rb', line 7 def converter_package_path @converter_package_path end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/goon_model_gen/converter/conv_file.rb', line 6 def path @path end |
#payload_convs ⇒ Object
- XxxxConv
8 9 10 |
# File 'lib/goon_model_gen/converter/conv_file.rb', line 8 def payload_convs @payload_convs end |
#result_convs ⇒ Object
- XxxxConv
8 9 10 |
# File 'lib/goon_model_gen/converter/conv_file.rb', line 8 def result_convs @result_convs end |
Instance Method Details
#basename ⇒ Object
15 16 17 |
# File 'lib/goon_model_gen/converter/conv_file.rb', line 15 def basename ::File.basename(path, '.*') end |