Module: Qor::Dsl
- Defined in:
- lib/qor_dsl.rb,
lib/qor_dsl/node.rb,
lib/qor_dsl/config.rb,
lib/qor_dsl/exception.rb,
lib/qor_dsl/class_method.rb
Defined Under Namespace
Modules: ClassMethods
Classes: Config, ConfigurationNotFound, Node
Class Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
8
9
10
|
# File 'lib/qor_dsl.rb', line 8
def self.included(base)
base.extend ClassMethods
end
|
.inspect_object(obj, options) ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/qor_dsl.rb', line 12
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
|