Class: FeduxOrgStdlib::FixturesManagement::NoFixture
- Inherits:
-
Object
- Object
- FeduxOrgStdlib::FixturesManagement::NoFixture
- Defined in:
- lib/fedux_org_stdlib/fixtures_management/no_fixture.rb
Overview
Placeholder when no associated fixture found, displays warning
Instance Method Summary collapse
-
#blank? ⇒ Boolean
Is not an existing plugin.
-
#initialize(name) ⇒ NoFixture
constructor
A new instance of NoFixture.
- #method_missing(*_args) ⇒ Object
Constructor Details
#initialize(name) ⇒ NoFixture
Returns a new instance of NoFixture.
12 13 14 |
# File 'lib/fedux_org_stdlib/fixtures_management/no_fixture.rb', line 12 def initialize(name) @name = name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*_args) ⇒ Object
21 22 23 |
# File 'lib/fedux_org_stdlib/fixtures_management/no_fixture.rb', line 21 def method_missing(*_args) warn "Warning: The fixture '#{name}' was not found!" end |
Instance Method Details
#blank? ⇒ Boolean
Is not an existing plugin
17 18 19 |
# File 'lib/fedux_org_stdlib/fixtures_management/no_fixture.rb', line 17 def blank? true end |