File: raw_string.rb

package info (click to toggle)
ruby-rspec-puppet 4.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,444 kB
  • sloc: ruby: 6,377; makefile: 6
file content (18 lines) | stat: -rw-r--r-- 420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module RSpec::Puppet
  # A raw string object, that is used by helpers to allow consumers to return non-quoted strings
  # as part of their params section.
  class RawString
    # Create a new RawString object
    # @param [String] value string to wrap
    def initialize(value)
      @value = value
    end

    # @return [String] raw string
    def inspect
      @value
    end
  end
end