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



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

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

Instance Attribute Details

#closingObject (readonly)

Returns the value of attribute closing.



862
863
864
# File 'lib/staticky/files.rb', line 862

def closing
  @closing
end

#openingObject (readonly)

Returns the value of attribute opening.



862
863
864
# File 'lib/staticky/files.rb', line 862

def opening
  @opening
end

Instance Method Details

#closing_matcherObject



875
876
877
# File 'lib/staticky/files.rb', line 875

def closing_matcher
  matcher(closing)
end

#opening_matcherObject



871
872
873
# File 'lib/staticky/files.rb', line 871

def opening_matcher
  matcher(opening)
end