Class: Graphomaton::ExporterRegistry::Entry
- Inherits:
-
Data
- Object
- Data
- Graphomaton::ExporterRegistry::Entry
- Defined in:
- lib/graphomaton/exporter_registry.rb
Instance Attribute Summary collapse
-
#aliases ⇒ Object
readonly
Returns the value of attribute aliases.
-
#binary ⇒ Object
readonly
Returns the value of attribute binary.
-
#capabilities ⇒ Object
readonly
Returns the value of attribute capabilities.
-
#extensions ⇒ Object
readonly
Returns the value of attribute extensions.
-
#loader ⇒ Object
readonly
Returns the value of attribute loader.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#aliases ⇒ Object (readonly)
Returns the value of attribute aliases
5 6 7 |
# File 'lib/graphomaton/exporter_registry.rb', line 5 def aliases @aliases end |
#binary ⇒ Object (readonly)
Returns the value of attribute binary
5 6 7 |
# File 'lib/graphomaton/exporter_registry.rb', line 5 def binary @binary end |
#capabilities ⇒ Object (readonly)
Returns the value of attribute capabilities
5 6 7 |
# File 'lib/graphomaton/exporter_registry.rb', line 5 def capabilities @capabilities end |
#extensions ⇒ Object (readonly)
Returns the value of attribute extensions
5 6 7 |
# File 'lib/graphomaton/exporter_registry.rb', line 5 def extensions @extensions end |
#loader ⇒ Object (readonly)
Returns the value of attribute loader
5 6 7 |
# File 'lib/graphomaton/exporter_registry.rb', line 5 def loader @loader end |
#name ⇒ Object (readonly)
Returns the value of attribute name
5 6 7 |
# File 'lib/graphomaton/exporter_registry.rb', line 5 def name @name end |
Instance Method Details
#exporter ⇒ Object
6 7 8 9 10 11 |
# File 'lib/graphomaton/exporter_registry.rb', line 6 def exporter resolved = loader.call return resolved if resolved.respond_to?(:new) raise ArgumentError, "Exporter #{name.inspect} loader must return a class" end |