File: raw_string.rb

package info (click to toggle)
ruby-rspec-puppet 2.9.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,416 kB
  • sloc: ruby: 6,661; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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