Class: Dry::Files::Delimiter Private

Inherits:
Object
  • Object
show all
Defined in:
lib/dry/files.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.3.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, opening, closing) ⇒ Delimiter

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Delimiter.

Since:

  • 0.3.0



874
875
876
877
878
879
# File 'lib/dry/files.rb', line 874

def initialize(name, opening, closing)
  @name = name
  @opening = opening
  @closing = closing
  freeze
end

Instance Attribute Details

#closingObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.3.0



870
871
872
# File 'lib/dry/files.rb', line 870

def closing
  @closing
end

#openingObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.3.0



870
871
872
# File 'lib/dry/files.rb', line 870

def opening
  @opening
end

Instance Method Details

#closing_matcherObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.2



889
890
891
# File 'lib/dry/files.rb', line 889

def closing_matcher
  matcher(closing)
end

#opening_matcherObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.2



883
884
885
# File 'lib/dry/files.rb', line 883

def opening_matcher
  matcher(opening)
end