Class: LintFu::Plugins::ActiveRecord::ModelEidos
- Inherits:
-
Object
- Object
- LintFu::Plugins::ActiveRecord::ModelEidos
- Includes:
- Eidos
- Defined in:
- lib/lint_fu/plugins/active_record/model_eidos.rb
Constant Summary
Constants included from Eidos
Instance Attribute Summary collapse
-
#associations ⇒ Object
readonly
Returns the value of attribute associations.
-
#named_scopes ⇒ Object
readonly
Returns the value of attribute named_scopes.
-
#paranoid ⇒ Object
writeonly
Sets the attribute paranoid.
Attributes included from Eidos
#modeled_class_name, #modeled_class_superclass_name, #parent_eidos, #parse_tree
Instance Method Summary collapse
-
#initialize(sexp, namespace = nil) ⇒ ModelEidos
constructor
A new instance of ModelEidos.
- #paranoid? ⇒ Boolean
Methods included from Eidos
Constructor Details
#initialize(sexp, namespace = nil) ⇒ ModelEidos
Returns a new instance of ModelEidos.
10 11 12 13 14 |
# File 'lib/lint_fu/plugins/active_record/model_eidos.rb', line 10 def initialize(sexp, namespace=nil) super(sexp, namespace) @associations = {} @named_scopes = {} end |
Instance Attribute Details
#associations ⇒ Object (readonly)
Returns the value of attribute associations.
6 7 8 |
# File 'lib/lint_fu/plugins/active_record/model_eidos.rb', line 6 def associations @associations end |
#named_scopes ⇒ Object (readonly)
Returns the value of attribute named_scopes.
7 8 9 |
# File 'lib/lint_fu/plugins/active_record/model_eidos.rb', line 7 def named_scopes @named_scopes end |
#paranoid=(value) ⇒ Object (writeonly)
Sets the attribute paranoid
8 9 10 |
# File 'lib/lint_fu/plugins/active_record/model_eidos.rb', line 8 def paranoid=(value) @paranoid = value end |
Instance Method Details
#paranoid? ⇒ Boolean
16 17 18 |
# File 'lib/lint_fu/plugins/active_record/model_eidos.rb', line 16 def paranoid? !!@paranoid end |