Class: RSpec::Puppet::RawString

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec-puppet/raw_string.rb

Overview

A raw string object, that is used by helpers to allow consumers to return non-quoted strings as part of their params section.

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ RawString

Create a new RawString object

Parameters:

  • value (String)

    string to wrap



7
8
9
# File 'lib/rspec-puppet/raw_string.rb', line 7

def initialize(value)
  @value = value
end

Instance Method Details

#inspectString

Returns raw string.

Returns:

  • (String)

    raw string



12
13
14
# File 'lib/rspec-puppet/raw_string.rb', line 12

def inspect
  @value
end