Class: Pubid::Core::Configuration
- Inherits:
-
Object
- Object
- Pubid::Core::Configuration
- Defined in:
- lib/pubid/core/configuration.rb
Instance Attribute Summary collapse
-
#default_type ⇒ Object
Returns the value of attribute default_type.
-
#identifier_module ⇒ Object
Returns the value of attribute identifier_module.
-
#prefixes ⇒ Object
Returns the value of attribute prefixes.
-
#stage_class ⇒ Object
Returns the value of attribute stage_class.
-
#stages ⇒ Object
Returns the value of attribute stages.
-
#type_class ⇒ Object
Returns the value of attribute type_class.
-
#type_names ⇒ Object
Returns the value of attribute type_names.
-
#typed_stage_class ⇒ Object
Returns the value of attribute typed_stage_class.
-
#types ⇒ Object
Returns the value of attribute types.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #typed_stages ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 |
# File 'lib/pubid/core/configuration.rb', line 6 def initialize @identifier_module = identifier_module @type_class = Pubid::Core::Type @stage_class = Pubid::Core::Stage @typed_stage_class = Pubid::Core::TypedStage @types = [] end |
Instance Attribute Details
#default_type ⇒ Object
Returns the value of attribute default_type.
3 4 5 |
# File 'lib/pubid/core/configuration.rb', line 3 def default_type @default_type end |
#identifier_module ⇒ Object
Returns the value of attribute identifier_module.
3 4 5 |
# File 'lib/pubid/core/configuration.rb', line 3 def identifier_module @identifier_module end |
#prefixes ⇒ Object
Returns the value of attribute prefixes.
3 4 5 |
# File 'lib/pubid/core/configuration.rb', line 3 def prefixes @prefixes end |
#stage_class ⇒ Object
Returns the value of attribute stage_class.
3 4 5 |
# File 'lib/pubid/core/configuration.rb', line 3 def stage_class @stage_class end |
#stages ⇒ Object
Returns the value of attribute stages.
3 4 5 |
# File 'lib/pubid/core/configuration.rb', line 3 def stages @stages end |
#type_class ⇒ Object
Returns the value of attribute type_class.
3 4 5 |
# File 'lib/pubid/core/configuration.rb', line 3 def type_class @type_class end |
#type_names ⇒ Object
Returns the value of attribute type_names.
3 4 5 |
# File 'lib/pubid/core/configuration.rb', line 3 def type_names @type_names end |
#typed_stage_class ⇒ Object
Returns the value of attribute typed_stage_class.
3 4 5 |
# File 'lib/pubid/core/configuration.rb', line 3 def typed_stage_class @typed_stage_class end |
#types ⇒ Object
Returns the value of attribute types.
3 4 5 |
# File 'lib/pubid/core/configuration.rb', line 3 def types @types end |
Instance Method Details
#typed_stages ⇒ Object
21 22 23 24 25 |
# File 'lib/pubid/core/configuration.rb', line 21 def typed_stages types.inject({}) do |res, type| res.merge(type::TYPED_STAGES) end end |