class Eddy::Build::Loop::Base
Generate Ruby code from JSON/YAML EDI definitions.
Attributes
summary[RW]
@return [Eddy::Summary::Loop]
t_set_id[RW]
Namespace the Loop
is within. @return [String]
Public Class Methods
new(summary, t_set_id)
click to toggle source
@param summary [Eddy::Summary::Loop] @param t_set_id
[String] @return [void]
# File lib/eddy/build/loop/base.rb, line 18 def initialize(summary, t_set_id) self.summary = summary self.t_set_id = t_set_id end
Public Instance Methods
ginny_class()
click to toggle source
@return [Ginny::Class]
# File lib/eddy/build/loop/base.rb, line 29 def ginny_class() return Ginny::Class.create({ classify_name: false, parent: "Eddy::Models::Loop::Base", name: "Base", description: summary.doc_comment(header: true), body: <<~STR.strip, # @param store [Eddy::Data::Store] # @return [void] def initialize(store) @repeat_limit = #{self.summary.repeat_limit} super(store, Repeat) end STR }) end
render()
click to toggle source
@return [String]
# File lib/eddy/build/loop/base.rb, line 24 def render() return self.ginny_class.render() end