class Kubes::Compiler::Decorator::Base
Attributes
data[R]
Public Class Methods
new(data)
click to toggle source
# File lib/kubes/compiler/decorator/base.rb, line 4 def initialize(data) @data = data end
Public Instance Methods
result()
click to toggle source
# File lib/kubes/compiler/decorator/base.rb, line 13 def result if @data.key?(Kubes::Compiler::Dsl::Core::Blocks) @data.results.each { |k,v| run(v) } # returns nil else run # processes and returns @data end @data # important to return @data so we keep the original @data structure: Blocks or Hash end
run()
click to toggle source
# File lib/kubes/compiler/decorator/base.rb, line 8 def run return @data unless Kubes.config.suffix_hash process end