Class: Canon::Rebaseliner::HeredocLocator::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/canon/rebaseliner/heredoc_locator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#heredoc_specObject

Returns the value of attribute heredoc_spec

Returns:

  • (Object)

    the current value of heredoc_spec



13
14
15
# File 'lib/canon/rebaseliner/heredoc_locator.rb', line 13

def heredoc_spec
  @heredoc_spec
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



13
14
15
# File 'lib/canon/rebaseliner/heredoc_locator.rb', line 13

def status
  @status
end

Instance Method Details

#rewritable?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/canon/rebaseliner/heredoc_locator.rb', line 14

def rewritable?
  status == :ok
end