Class: Staticky::Files::Delimiter
- Inherits:
-
Object
- Object
- Staticky::Files::Delimiter
- Defined in:
- lib/staticky/files.rb
Constant Summary collapse
- SPACE_MATCHER_GENERAL =
/[[:space:]]*/
Instance Attribute Summary collapse
-
#closing ⇒ Object
readonly
Returns the value of attribute closing.
-
#opening ⇒ Object
readonly
Returns the value of attribute opening.
Instance Method Summary collapse
- #closing_matcher ⇒ Object
-
#initialize(name, opening, closing) ⇒ Delimiter
constructor
A new instance of Delimiter.
- #opening_matcher ⇒ Object
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
#closing ⇒ Object (readonly)
Returns the value of attribute closing.
851 852 853 |
# File 'lib/staticky/files.rb', line 851 def closing @closing end |
#opening ⇒ Object (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_matcher ⇒ Object
864 865 866 |
# File 'lib/staticky/files.rb', line 864 def closing_matcher matcher(closing) end |
#opening_matcher ⇒ Object
860 861 862 |
# File 'lib/staticky/files.rb', line 860 def opening_matcher matcher(opening) end |