Class: RbYAML::CommonLoader
Direct Known Subclasses
Instance Attribute Summary collapse
-
#composer ⇒ Object
Returns the value of attribute composer.
-
#constructor ⇒ Object
Returns the value of attribute constructor.
-
#parser ⇒ Object
Returns the value of attribute parser.
-
#resolver ⇒ Object
Returns the value of attribute resolver.
-
#scanner ⇒ Object
Returns the value of attribute scanner.
Instance Method Summary collapse
-
#initialize(stream, scanner = Scanner, parser = Parser, composer = Composer, constructor = BaseConstructor, resolver = BaseResolver) ⇒ CommonLoader
constructor
A new instance of CommonLoader.
Constructor Details
#initialize(stream, scanner = Scanner, parser = Parser, composer = Composer, constructor = BaseConstructor, resolver = BaseResolver) ⇒ CommonLoader
Returns a new instance of CommonLoader.
13 14 15 16 17 18 19 |
# File 'lib/rbyaml/loader.rb', line 13 def initialize(stream,scanner=Scanner,parser=Parser,composer=Composer,constructor=BaseConstructor,resolver=BaseResolver) @scanner = scanner.new(stream) @parser = parser.new(@scanner) @resolver = resolver.new @composer = composer.new(@parser,@resolver) @constructor = constructor.new(@composer) end |
Instance Attribute Details
#composer ⇒ Object
Returns the value of attribute composer.
11 12 13 |
# File 'lib/rbyaml/loader.rb', line 11 def composer @composer end |
#constructor ⇒ Object
Returns the value of attribute constructor.
11 12 13 |
# File 'lib/rbyaml/loader.rb', line 11 def constructor @constructor end |
#parser ⇒ Object
Returns the value of attribute parser.
11 12 13 |
# File 'lib/rbyaml/loader.rb', line 11 def parser @parser end |
#resolver ⇒ Object
Returns the value of attribute resolver.
11 12 13 |
# File 'lib/rbyaml/loader.rb', line 11 def resolver @resolver end |
#scanner ⇒ Object
Returns the value of attribute scanner.
11 12 13 |
# File 'lib/rbyaml/loader.rb', line 11 def scanner @scanner end |