Method: LibGems::Specification#initialize
- Defined in:
- lib/libgems/specification.rb
#initialize(name = nil, version = nil) {|_self| ... } ⇒ Specification
Specification constructor. Assigns the default values to the attributes and yields itself for further initialization. Optionally takes name
and version
.
416 417 418 419 420 421 422 423 424 425 426 427 428 |
# File 'lib/libgems/specification.rb', line 416 def initialize name = nil, version = nil @new_platform = nil assign_defaults @loaded = false @loaded_from = nil self.name = name if name self.version = version if version yield self if block_given? @@gather.call(self) if @@gather end |