Malt  Malt::Kernel

[Validate]
Generated with RDazzle Newfish 1.4.0

Kernel

Private Instance Methods

ext_to_type(ext) click to toggle source
    # File lib/malt/kernel.rb, line 19
19:     def ext_to_type(ext)
20:       ext = ext.to_s.downcase
21:       return nil if ext.empty?
22:       if ext[0,1] == '.'
23:         ext[1..1].to_sym
24:       else
25:         ext.to_sym
26:       end
27:     end
make_ostruct(hash) click to toggle source
    # File lib/malt/kernel.rb, line 9
 9:     def make_ostruct(hash)
10:       case hash
11:       when OpenStruct
12:         hash
13:       else
14:         OpenStruct.new(hash)
15:       end
16:     end

Disabled; run with --debug to generate this.