module NRSER::RSpex

Extensions

Declarations

Declarations

Constants

PREFIXES

Symbol characters for specific example group types.

Sources:

Public Class Methods

dot_rel_path(dest) click to toggle source

Get the relative path from the working directory with the `./` in front.

@param [String | Pathname] dest

Destination file path.

@return [String]

# File lib/nrser/rspex.rb, line 179
def self.dot_rel_path dest
  File.join '.', dest.to_pn.relative_path_from( Pathname.getwd )
end
format(*args) click to toggle source
# File lib/nrser/rspex.rb, line 167
def self.format *args
  NRSER::RSpex::Format.description *args
end
short_s(value, max = 64) click to toggle source

Module (Class) Functions

# File lib/nrser/rspex.rb, line 162
def self.short_s value, max = 64
  NRSER.smart_ellipsis value.inspect, max
end