Class: Spyke::RfcConverter
- Inherits:
-
Object
- Object
- Spyke::RfcConverter
- Defined in:
- lib/spyke/rfc_converter.rb
Instance Method Summary collapse
- #convert ⇒ Object
-
#initialize(input) ⇒ RfcConverter
constructor
A new instance of RfcConverter.
Constructor Details
#initialize(input) ⇒ RfcConverter
Returns a new instance of RfcConverter.
3 4 5 |
# File 'lib/spyke/rfc_converter.rb', line 3 def initialize(input) @input = input end |
Instance Method Details
#convert ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/spyke/rfc_converter.rb', line 7 def convert output = @input.dup output = wrap_required_variables_in_curly_braces(output) output = convert_parens_to_curly_braces(output) output = remove_colons(output) output end |