Class: Avrocado::Schema

Inherits:
Object
  • Object
show all
Defined in:
lib/avrocado/schema.rb

Class Method Summary collapse

Class Method Details

.parse(path = EXAMPLE_SCHEMA_PATH) ⇒ Object



5
6
7
# File 'lib/avrocado/schema.rb', line 5

def self.parse(path = EXAMPLE_SCHEMA_PATH)
  Java::Avro::Schema::Parser.new.parse(java.io.File.new(path))
end