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
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
#closing ⇒ Object (readonly)
Returns the value of attribute closing.
862 863 864 |
# File 'lib/staticky/files.rb', line 862 def closing @closing end |
#opening ⇒ Object (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_matcher ⇒ Object
875 876 877 |
# File 'lib/staticky/files.rb', line 875 def closing_matcher matcher(closing) end |
#opening_matcher ⇒ Object
871 872 873 |
# File 'lib/staticky/files.rb', line 871 def opening_matcher matcher(opening) end |