Module: JupyterOnRails::Daru::ActiveRecordExt
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/jupyter_on_rails/daru/active_record_ext.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.class_methods(&class_methods_module_definition) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/jupyter_on_rails/daru/active_record_ext.rb', line 12 def self.class_methods(&class_methods_module_definition) mod = const_defined?(:ClassMethods, false) ? const_get(:ClassMethods) : const_set(:ClassMethods, Module.new) mod.module_eval(&class_methods_module_definition) end |
Instance Method Details
#to_df ⇒ Object
51 52 53 |
# File 'lib/jupyter_on_rails/daru/active_record_ext.rb', line 51 def to_df ::Daru::DataFrame.new([attributes]) end |