Exception: Ast::Merge::PlaceholderCollisionError
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
Instance Method Summary collapse
-
#initialize(placeholder) ⇒ PlaceholderCollisionError
constructor
A new instance of PlaceholderCollisionError.
Constructor Details
#initialize(placeholder) ⇒ PlaceholderCollisionError
Returns a new instance of PlaceholderCollisionError.
48 49 50 51 52 53 54 |
# File 'lib/ast/merge.rb', line 48 def initialize(placeholder) @placeholder = placeholder super( "Document contains placeholder text '#{placeholder}'. " \ 'Use the :region_placeholder option to specify a custom placeholder.' ) end |
Instance Attribute Details
#placeholder ⇒ Object (readonly)
Returns the value of attribute placeholder.
46 47 48 |
# File 'lib/ast/merge.rb', line 46 def placeholder @placeholder end |