Class: Merb::Inspector
- Inherits:
-
Controller
show all
- Defined in:
- lib/merb_inspector/data.rb,
lib/merb_inspector/helper.rb,
lib/merb_inspector/builtin.rb,
lib/merb_inspector/manager.rb,
lib/merb_inspector/inspector.rb
Defined Under Namespace
Modules: Builtin, Helper, Manager
Classes: ActionNotFound, Column, DMColumn, LinkColumn, VirtualColumn
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Helper
#inspect
Class Method Details
.builtin ⇒ Object
28
29
30
|
# File 'lib/merb_inspector/inspector.rb', line 28
def self.builtin
include Merb::Inspector::Builtin
end
|
.default ⇒ Object
15
16
17
|
# File 'lib/merb_inspector/inspector.rb', line 15
def self.default
ObjectInspector
end
|
.lead(options = {}) ⇒ Object
32
33
34
|
# File 'lib/merb_inspector/inspector.rb', line 32
def self.lead(options = {})
@lead_options = options
end
|
.lead_options ⇒ Object
36
37
38
|
# File 'lib/merb_inspector/inspector.rb', line 36
def self.lead_options
@lead_options
end
|
.model(*models) ⇒ Object
22
23
24
25
26
|
# File 'lib/merb_inspector/inspector.rb', line 22
def self.model(*models)
models.each do |model|
Merb::Inspector::Manager.register(model, self)
end
end
|
.root ⇒ Object
11
12
13
|
# File 'lib/merb_inspector/inspector.rb', line 11
def self.root
@root ||= Pathname(File.expand_path(File.dirname(__FILE__) + "/../../"))
end
|
Instance Method Details
#show(object, options = {}) ⇒ Object
40
41
42
43
44
45
|
# File 'lib/merb_inspector/inspector.rb', line 40
def show(object, options = {})
@object = object
@options = options
execute
end
|