Class: ReeDao::DaoDatasetContract
- Inherits:
-
Object
- Object
- ReeDao::DaoDatasetContract
- Extended by:
- Ree::Contracts::Truncatable
- Defined in:
- lib/ree_lib/packages/ree_dao/package/ree_dao/contract/dao_dataset_contract.rb
Class Method Summary collapse
Class Method Details
.message(value, name, lvl = 1) ⇒ Object
12 13 14 |
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/contract/dao_dataset_contract.rb', line 12 def self.(value, name, lvl = 1) "expected #{to_s}, got => #{truncate(value.inspect)}" end |
.to_s ⇒ Object
8 9 10 |
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/contract/dao_dataset_contract.rb', line 8 def self.to_s "PackageName::DaoName::Dao: \"SELECT * FROM `table`\"" end |
.valid?(obj) ⇒ Boolean
4 5 6 |
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/contract/dao_dataset_contract.rb', line 4 def self.valid?(obj) obj.class.ancestors.include?(ReeDao::DatasetExtensions::InstanceMethods) end |