Module: Ast::Crispr::OperationProfilable::ClassMethods
- Defined in:
- lib/ast/crispr.rb
Instance Method Summary collapse
Instance Method Details
#declare_operation_profile(**attributes) ⇒ Object
1271 1272 1273 |
# File 'lib/ast/crispr.rb', line 1271 def declare_operation_profile(**attributes) @operation_profile = OperationProfile.new(**attributes) end |
#operation_profile ⇒ Object
1275 1276 1277 1278 |
# File 'lib/ast/crispr.rb', line 1275 def operation_profile @operation_profile || raise(Error.new('CRISPR operation profile is not declared', details: { operation_class: name })) end |