class Bizflow::Lib::SemanticBuilder
Attributes
domain_interpreter[RW]
repo[RW]
source_path[RW]
Public Class Methods
new(source_path)
click to toggle source
# File lib/bizflow/lib/semantic_builder.rb, line 11 def initialize(source_path) @repo = Bizflow::SemanticModel::DomainRepo.new @source_path = source_path end
Public Instance Methods
build()
click to toggle source
# File lib/bizflow/lib/semantic_builder.rb, line 17 def build @domain_interpreter = Bizflow::DomainInterpreter.new(repo) source_files.each do |path| @domain_interpreter.instance_eval(File.read(path), path, __LINE__) end repo end
Private Instance Methods
source_files()
click to toggle source
# File lib/bizflow/lib/semantic_builder.rb, line 29 def source_files Dir["#{@source_path}/**/*.rb"] end