Class: Staticky::Files::Delimiter

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

Constant Summary collapse

SPACE_MATCHER_GENERAL =
/[[:space:]]*/

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, opening, closing) ⇒ Delimiter

Returns a new instance of Delimiter.



853
854
855
856
857
858
# File 'lib/staticky/files.rb', line 853

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

Instance Attribute Details

#closingObject (readonly)

Returns the value of attribute closing.



851
852
853
# File 'lib/staticky/files.rb', line 851

def closing
  @closing
end

#openingObject (readonly)

Returns the value of attribute opening.



851
852
853
# File 'lib/staticky/files.rb', line 851

def opening
  @opening
end

Instance Method Details

#closing_matcherObject



864
865
866
# File 'lib/staticky/files.rb', line 864

def closing_matcher
  matcher(closing)
end

#opening_matcherObject



860
861
862
# File 'lib/staticky/files.rb', line 860

def opening_matcher
  matcher(opening)
end