Method: Sass::Script::Value::String#initialize

Defined in:
lib/sass/script/value/string.rb

#initialize(value, type = :identifier, deprecated_interp_equivalent = nil) ⇒ String

Creates a new string.

Parameters:

  • value (String)

    See #value

  • type (Symbol) (defaults to: :identifier)

    See #type

  • deprecated_interp_equivalent (String?) (defaults to: nil)

    If this was created via a potentially-deprecated string interpolation, this is the replacement expression that should be suggested to the user.



84
85
86
87
88
# File 'lib/sass/script/value/string.rb', line 84

def initialize(value, type = :identifier, deprecated_interp_equivalent = nil)
  super(value)
  @type = type
  @deprecated_interp_equivalent = deprecated_interp_equivalent
end