Class: ShopifyCLI::Theme::Syncer::UnsupportedScriptWarning
- Inherits:
-
Object
- Object
- ShopifyCLI::Theme::Syncer::UnsupportedScriptWarning
- Defined in:
- lib/shopify_cli/theme/syncer/unsupported_script_warning.rb
Defined Under Namespace
Classes: Warning
Instance Attribute Summary collapse
-
#ctx ⇒ Object
readonly
Returns the value of attribute ctx.
Instance Method Summary collapse
-
#initialize(ctx, file) ⇒ UnsupportedScriptWarning
constructor
A new instance of UnsupportedScriptWarning.
- #to_s ⇒ Object
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
#ctx ⇒ Object (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_s ⇒ Object
14 15 16 |
# File 'lib/shopify_cli/theme/syncer/unsupported_script_warning.rb', line 14 def to_s "\n\n#{occurrences} #{long_text}" end |