Class: NicePartials::Partial::Section::Empty
- Inherits:
- BasicObject
- Defined in:
- lib/nice_partials/partial/section.rb
Instance Method Summary collapse
-
#initialize(section) ⇒ Empty
constructor
A new instance of Empty.
- #method_missing ⇒ Object
- #nil? ⇒ Boolean
Constructor Details
#initialize(section) ⇒ Empty
Returns a new instance of Empty.
7 8 9 |
# File 'lib/nice_partials/partial/section.rb', line 7 def initialize(section) @section = section end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing ⇒ Object
16 17 18 |
# File 'lib/nice_partials/partial/section.rb', line 16 def method_missing(...) present? ? super : "" end |
Instance Method Details
#nil? ⇒ Boolean
12 13 14 |
# File 'lib/nice_partials/partial/section.rb', line 12 def nil? true end |