Class: Spyke::RfcConverter

Inherits:
Object
  • Object
show all
Defined in:
lib/spyke/rfc_converter.rb

Instance Method Summary collapse

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

#convertObject



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