Class: LLT::StemBuilder

Inherits:
Object
  • Object
show all
Extended by:
Helpers::Constantize
Defined in:
lib/llt/stem_builder.rb

Class Method Summary collapse

Class Method Details

.build(type, args, source) ⇒ Object



8
9
10
11
12
13
# File 'lib/llt/stem_builder.rb', line 8

def self.build(type, args, source)
  type = parse_type_and_extend_args(type, args)
  pre = complex_stems.include?(type) ? type : ""
  cl  = constant_by_type(:pack, prefix: pre, namespace: LLT::Stem)
  cl.new(type, args, source)
end