module Taketo
Constants
- VERSION
Public Class Methods
new()
click to toggle source
# File lib/taketo/config_visitor.rb, line 33 def initialize @result = [] end
Public Instance Methods
SimpleCollector(*types)
click to toggle source
# File lib/taketo/config_visitor.rb, line 29 def SimpleCollector(*types) Class.new(ConfigVisitor) do attr_reader :result def initialize @result = [] end types.each do |t| visit t do |n| @result << n end end end end
downcased_construct_class_name(klass)
click to toggle source
# File lib/taketo/config_visitor.rb, line 6 def downcased_construct_class_name(klass) klass.name.gsub("Taketo::Constructs::", "").gsub(/[A-Z][^A-Z]*/) { |s| s.gsub("::", "").downcase + "_" }.chop end