Class: FeduxOrgStdlib::FixturesManagement::NoFixture

Inherits:
Object
  • Object
show all
Defined in:
lib/fedux_org_stdlib/fixtures_management/no_fixture.rb

Overview

Placeholder when no associated fixture found, displays warning

Instance Method Summary collapse

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

Returns:

  • (Boolean)


17
18
19
# File 'lib/fedux_org_stdlib/fixtures_management/no_fixture.rb', line 17

def blank?
  true
end