class SwaggerYard::TypeParser::Parser
Public Instance Methods
spaced(arg)
click to toggle source
Allow for whitespace surrounding a string value
# File lib/swagger_yard/type_parser.rb, line 7 def spaced(arg) space >> str(arg) >> space end
stri(str)
click to toggle source
# File lib/swagger_yard/type_parser.rb, line 11 def stri(str) key_chars = str.split(//) key_chars.collect! { |char| match["#{char.upcase}#{char.downcase}"] }. reduce(:>>) end