Class: Ast::Crispr::DestinationResolution
- Inherits:
-
Object
- Object
- Ast::Crispr::DestinationResolution
- Defined in:
- lib/ast/crispr.rb
Instance Attribute Summary collapse
-
#anchor ⇒ Object
readonly
Returns the value of attribute anchor.
-
#destination_profile ⇒ Object
readonly
Returns the value of attribute destination_profile.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
Instance Method Summary collapse
- #append_fallback? ⇒ Boolean
-
#initialize(mode:, anchor:, destination_profile:) ⇒ DestinationResolution
constructor
A new instance of DestinationResolution.
Constructor Details
#initialize(mode:, anchor:, destination_profile:) ⇒ DestinationResolution
Returns a new instance of DestinationResolution.
443 444 445 446 447 |
# File 'lib/ast/crispr.rb', line 443 def initialize(mode:, anchor:, destination_profile:) @mode = mode&.to_sym @anchor = anchor @destination_profile = destination_profile end |
Instance Attribute Details
#anchor ⇒ Object (readonly)
Returns the value of attribute anchor.
441 442 443 |
# File 'lib/ast/crispr.rb', line 441 def anchor @anchor end |
#destination_profile ⇒ Object (readonly)
Returns the value of attribute destination_profile.
441 442 443 |
# File 'lib/ast/crispr.rb', line 441 def destination_profile @destination_profile end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
441 442 443 |
# File 'lib/ast/crispr.rb', line 441 def mode @mode end |
Instance Method Details
#append_fallback? ⇒ Boolean
449 450 451 |
# File 'lib/ast/crispr.rb', line 449 def append_fallback? mode == :append end |