class Gravaty::Parsers::Callback

This class is an implementation of the Parsable duck type that provides the callback name. The only needed parameter is a valid callback String name.

Author

Marco Bresciani

rubocop:disable Style/AsciiComments

Copyright

Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani

rubocop:enable Style/AsciiComments

License

GNU General Public License version 3

Public Instance Methods

parse(value = nil) click to toggle source

The parsable duck type interface to every parser usage.

   # File lib/gravaty/parsers/callback.rb
42 def parse(value = nil)
43   return "callback=#{value}" unless value.nil? || value.empty?
44 
45   ''
46 end