Class: Reactive::View::Wx::Helpers::ModelShowCtrl

Inherits:
Wx::Panel
  • Object
show all
Defined in:
lib/helpers/model_show_ctrl_class.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent, record, options = {}) ⇒ ModelShowCtrl

Returns a new instance of ModelShowCtrl.



13
14
15
16
17
18
# File 'lib/helpers/model_show_ctrl_class.rb', line 13

def initialize(parent, record, options = {})
  super(parent, options)
  @model, @record = record.class, record
  
  fill_controls(record)
end

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model.



7
8
9
# File 'lib/helpers/model_show_ctrl_class.rb', line 7

def model
  @model
end

Instance Method Details

#selected_recordsObject



9
10
11
# File 'lib/helpers/model_show_ctrl_class.rb', line 9

def selected_records
  [@record]
end