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, strict_integer: false) ⇒ Object
59 60 61 62 63 |
# File 'lib/flatito/yaml_with_line_number.rb', line 59 def self.create(symbolize_names: false, freeze: false, strict_integer: false) class_loader = ClassLoader.new scanner = Psych::ScalarScanner.new(class_loader, strict_integer: strict_integer) new(scanner, class_loader, symbolize_names: symbolize_names, freeze: freeze) end |
Instance Method Details
#visit_Flatito_YAMLWithLineNumber_NodesScalar(node) ⇒ Object
rubocop:disable Naming/MethodName
65 66 67 |
# File 'lib/flatito/yaml_with_line_number.rb', line 65 def visit_Flatito_YAMLWithLineNumber_NodesScalar(node) # rubocop:disable Naming/MethodName visit_Psych_Nodes_Scalar(node) end |