Class: YAML_LD::Reader
- Inherits:
-
JSON::LD::Reader
- Object
- JSON::LD::Reader
- YAML_LD::Reader
- Defined in:
- lib/yaml_ld/reader.rb
Overview
A YAML-LD parser in Ruby.
Instance Method Summary collapse
-
#initialize(input = $stdin, documentLoader: YAML_LD::API.method(:documentLoader), **options) {|reader| ... } ⇒ Reader
constructor
Initializes the YAML-LD reader instance.
Constructor Details
#initialize(input = $stdin, documentLoader: YAML_LD::API.method(:documentLoader), **options) {|reader| ... } ⇒ Reader
Initializes the YAML-LD reader instance.
24 25 26 27 28 29 |
# File 'lib/yaml_ld/reader.rb', line 24 def initialize(input = $stdin, documentLoader: YAML_LD::API.method(:documentLoader), **, &block) input = StringIO.new(input) if input.is_a?(String) super(input, documentLoader: documentLoader, **, &block) end |