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



9
10
11
# File 'lib/rspec-puppet/raw_string.rb', line 9

def initialize(value)
  @value = value
end

Instance Method Details

#inspectString

Returns raw string.

Returns:

  • (String)

    raw string



14
15
16
# File 'lib/rspec-puppet/raw_string.rb', line 14

def inspect
  @value
end