class Fastlane::Actions::CustomVisitor
Public Class Methods
new(io)
click to toggle source
Calls superclass method
# File lib/fastlane/plugin/sunny_project/actions/pubspec_doctor_action.rb, line 134 def initialize(io) super(io) end
Public Instance Methods
visit_Psych_Nodes_Scalar(o)
click to toggle source
# File lib/fastlane/plugin/sunny_project/actions/pubspec_doctor_action.rb, line 138 def visit_Psych_Nodes_Scalar(o) if o.value.is_a? String str = "#{o.value}" if str.start_with?('^') || str.start_with?('..') @handler.scalar o.value, o.anchor, o.tag, o.plain, o.quoted, 1 elsif str.start_with?('https://') || str.start_with?('git@') @handler.scalar o.value, o.anchor, o.tag, o.plain, o.quoted, 3 else @handler.scalar o.value, o.anchor, o.tag, o.plain, o.quoted, o.style end return end @handler.scalar o.value, o.anchor, o.tag, o.plain, o.quoted, o.style end