Class: Scopedog::RecordClass::Scope
- Inherits:
-
Object
- Object
- Scopedog::RecordClass::Scope
- Defined in:
- lib/scopedog/record_class.rb
Instance Attribute Summary collapse
-
#record_class ⇒ Scopedog::RecordClass
readonly
The current value of record_class.
-
#yard_obj ⇒ YARD::CodeObjects::MethodObject
readonly
The current value of yard_obj.
Instance Method Summary collapse
- #docstring ⇒ String
-
#initialize(record_class, yard_obj) ⇒ Scope
constructor
A new instance of Scope.
- #name ⇒ String
- #sql ⇒ String
Constructor Details
#initialize(record_class, yard_obj) ⇒ Scope
Returns a new instance of Scope.
67 68 69 70 |
# File 'lib/scopedog/record_class.rb', line 67 def initialize(record_class, yard_obj) @record_class = record_class @yard_obj = yard_obj end |
Instance Attribute Details
#record_class ⇒ Scopedog::RecordClass (readonly)
Returns the current value of record_class.
62 63 64 |
# File 'lib/scopedog/record_class.rb', line 62 def record_class @record_class end |
#yard_obj ⇒ YARD::CodeObjects::MethodObject (readonly)
Returns the current value of yard_obj.
62 63 64 |
# File 'lib/scopedog/record_class.rb', line 62 def yard_obj @yard_obj end |
Instance Method Details
#docstring ⇒ String
78 79 80 |
# File 'lib/scopedog/record_class.rb', line 78 def docstring yard_obj.docstring end |
#name ⇒ String
73 74 75 |
# File 'lib/scopedog/record_class.rb', line 73 def name yard_obj.name end |
#sql ⇒ String
83 84 85 |
# File 'lib/scopedog/record_class.rb', line 83 def sql record_class.ar_class.send(name).to_sql end |