Class: Foobara::Manifest::Error

Inherits:
BaseManifest show all
Defined in:
foobara-0.0.110/projects/manifest/src/foobara/manifest/error.rb

Constant Summary

Constants included from TruncatedInspect

TruncatedInspect::MAX_LENGTH

Instance Attribute Summary

Attributes inherited from BaseManifest

#path, #root_manifest

Instance Method Summary collapse

Methods inherited from BaseManifest

#==, #[], category_to_manifest_class, #domain, #eql?, #find_type, #global_domain, #global_organization, #hash, #initialize, #key?, #method_missing, optional_key, #optional_key?, optional_key_defaults, optional_keys, #organization, #parent, #parent_category, #parent_name, #relevant_manifest, #respond_to_missing?, #scoped_category

Methods included from TruncatedInspect

#inspect, truncating

Constructor Details

This class inherits a constructor from Foobara::Manifest::BaseManifest

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Foobara::Manifest::BaseManifest

Instance Method Details

#abstractObject



26
27
28
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/error.rb', line 26

def abstract
  self[:abstract]
end

#error_manifestObject



6
7
8
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/error.rb', line 6

def error_manifest
  relevant_manifest
end

#error_nameObject



14
15
16
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/error.rb', line 14

def error_name
  scoped_name
end

#full_error_nameObject



22
23
24
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/error.rb', line 22

def full_error_name
  scoped_full_name
end

#short_error_nameObject



18
19
20
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/error.rb', line 18

def short_error_name
  scoped_short_name
end

#symbolObject



10
11
12
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/error.rb', line 10

def symbol
  super.to_sym
end

#types_depended_onObject



30
31
32
33
34
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/error.rb', line 30

def types_depended_on
  @types_depended_on ||= self[:types_depended_on].map do |type_reference|
    Type.new(root_manifest, [:type, type_reference])
  end
end