Sha256: 10301d1d20651ebcc8a1cee1a048d76d932c72760bb48cb28ceebd14c9e80fd8
Contents?: true
Size: 701 Bytes
Versions: 4
Compression:
Stored size: 701 Bytes
Contents
require 'qor_dsl/exception' require 'qor_dsl/class_method' require 'qor_dsl/config' require 'qor_dsl/node' module Qor module Dsl def self.included(base) base.extend ClassMethods end def self.inspect_object(obj, options) options = options.inject({}) do |summary, value| unless [:nil?, :empty?, :blank?].any? { |method| value[1].respond_to?(method) && value[1].send(method) } summary[value[0]] = value[1] end summary end "#<#{obj.class}:0x#{obj.object_id.to_s(16)} #{options.inspect}>" end end end module Qor module DSL def self.included(base) base.send :include, Qor::Dsl end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
qor_dsl-0.3.3 | lib/qor_dsl.rb |
qor_dsl-0.3.2 | lib/qor_dsl.rb |
qor_dsl-0.3.1 | lib/qor_dsl.rb |
qor_dsl-0.3.0 | lib/qor_dsl.rb |