Class: Aef::Hosts::EmptyElement
- Defined in:
- lib/aef/hosts/empty_element.rb
Overview
Represents an empty line as element of a hosts file
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#generate_string(options = {}) ⇒ String
protected
Defines the algorithm to generate a String representation from scratch.
-
#initialize(options = {}) ⇒ EmptyElement
constructor
Initializes an empty Element.
Methods inherited from Element
#cache_filled?, #cache_string, #inspect, #invalidate_cache!, #to_s
Constructor Details
#initialize(options = {}) ⇒ EmptyElement
Initializes an empty Element
32 33 34 35 36 |
# File 'lib/aef/hosts/empty_element.rb', line 32 def initialize( = {}) (, :cache) @cache = [:cache].to_s unless [:cache].nil? end |
Instance Method Details
#generate_string(options = {}) ⇒ String (protected)
Defines the algorithm to generate a String representation from scratch.
43 44 45 |
# File 'lib/aef/hosts/empty_element.rb', line 43 def generate_string( = {}) "\n" end |