Module: Cassie::Statements::Execution::Consistency::ClassMethods
- Defined in:
- lib/cassie/statements/execution/consistency.rb
Instance Method Summary collapse
Instance Method Details
#consistency(val = :get) ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/cassie/statements/execution/consistency.rb', line 28 def consistency(val=:get) if val == :get return @consistency if defined?(@consistency) Cassie::Statements.default_consistency else self.consistency = val end end |
#consistency=(val) ⇒ Object
24 25 26 |
# File 'lib/cassie/statements/execution/consistency.rb', line 24 def consistency=(val) @consistency = val end |
#inherited(subclass) ⇒ Object
19 20 21 22 |
# File 'lib/cassie/statements/execution/consistency.rb', line 19 def inherited(subclass) subclass.consistency = consistency if defined?(@consistency) super end |