Exception: Foobara::Util::ParentModuleDoesNotExistError

Inherits:
StandardError
  • Object
show all
Defined in:
foobara-util-0.0.11/lib/foobara/util/meta.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, parent_name:) ⇒ ParentModuleDoesNotExistError

Returns a new instance of ParentModuleDoesNotExistError.



6
7
8
9
10
11
# File 'foobara-util-0.0.11/lib/foobara/util/meta.rb', line 6

def initialize(name:, parent_name:)
  @name = name
  @parent_name = parent_name

  super("Parent module #{parent_name} does not exist for #{name}.")
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'foobara-util-0.0.11/lib/foobara/util/meta.rb', line 4

def name
  @name
end

#parent_nameObject (readonly)

Returns the value of attribute parent_name.



4
5
6
# File 'foobara-util-0.0.11/lib/foobara/util/meta.rb', line 4

def parent_name
  @parent_name
end