Class: ShopifyCLI::Theme::Syncer::UnsupportedScriptWarning

Inherits:
Object
  • Object
show all
Defined in:
lib/shopify_cli/theme/syncer/unsupported_script_warning.rb

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ctx, file) ⇒ UnsupportedScriptWarning

Returns a new instance of UnsupportedScriptWarning.



9
10
11
12
# File 'lib/shopify_cli/theme/syncer/unsupported_script_warning.rb', line 9

def initialize(ctx, file)
  @ctx = ctx
  @file = file
end

Instance Attribute Details

#ctxObject (readonly)

Returns the value of attribute ctx.



7
8
9
# File 'lib/shopify_cli/theme/syncer/unsupported_script_warning.rb', line 7

def ctx
  @ctx
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/shopify_cli/theme/syncer/unsupported_script_warning.rb', line 14

def to_s
  "\n\n#{occurrences} #{long_text}"
end