Class: MetaHeader::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/metaheader.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mh) ⇒ Parser

Returns a new instance of Parser.



11
12
13
# File 'lib/metaheader.rb', line 11

def initialize(mh)
  @mh = mh
end

Class Method Details

.each(&b) ⇒ Object



7
8
9
# File 'lib/metaheader.rb', line 7

def self.each(&b)
  ObjectSpace.each_object(Class).select { |klass| klass < self }.each &b
end

Instance Method Details

#headerObject



15
16
17
# File 'lib/metaheader.rb', line 15

def header
  @mh
end