Class: Pubid::Core::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/pubid/core/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_typeObject

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_moduleObject

Returns the value of attribute identifier_module.



3
4
5
# File 'lib/pubid/core/configuration.rb', line 3

def identifier_module
  @identifier_module
end

#prefixesObject

Returns the value of attribute prefixes.



3
4
5
# File 'lib/pubid/core/configuration.rb', line 3

def prefixes
  @prefixes
end

#stage_classObject

Returns the value of attribute stage_class.



3
4
5
# File 'lib/pubid/core/configuration.rb', line 3

def stage_class
  @stage_class
end

#stagesObject

Returns the value of attribute stages.



3
4
5
# File 'lib/pubid/core/configuration.rb', line 3

def stages
  @stages
end

#type_classObject

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_namesObject

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_classObject

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

#typesObject

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_stagesObject



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