Class: Flatito::YAMLWithLineNumber::VisitorsToRuby
- Inherits:
-
Psych::Visitors::ToRuby
- Object
- Psych::Visitors::ToRuby
- Flatito::YAMLWithLineNumber::VisitorsToRuby
- Defined in:
- lib/flatito/yaml_with_line_number.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#visit_Flatito_YAMLWithLineNumber_NodesScalar(node) ⇒ Object
rubocop:disable Naming/MethodName.
Class Method Details
.create(symbolize_names: false, freeze: false) ⇒ Object
57 58 59 60 61 |
# File 'lib/flatito/yaml_with_line_number.rb', line 57 def self.create(symbolize_names: false, freeze: false) class_loader = ClassLoader.new scanner = Psych::ScalarScanner.new(class_loader) new(scanner, class_loader, symbolize_names: symbolize_names, freeze: freeze) end |
Instance Method Details
#visit_Flatito_YAMLWithLineNumber_NodesScalar(node) ⇒ Object
rubocop:disable Naming/MethodName
63 64 65 |
# File 'lib/flatito/yaml_with_line_number.rb', line 63 def visit_Flatito_YAMLWithLineNumber_NodesScalar(node) # rubocop:disable Naming/MethodName visit_Psych_Nodes_Scalar(node) end |