Class: Evilution::AST::SourceSurgeon::Result Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/evilution/ast/source_surgeon.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



8
9
10
# File 'lib/evilution/ast/source_surgeon.rb', line 8

def source
  @source
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



8
9
10
# File 'lib/evilution/ast/source_surgeon.rb', line 8

def status
  @status
end

Instance Method Details

#ok?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


9
10
11
# File 'lib/evilution/ast/source_surgeon.rb', line 9

def ok?
  status == :ok
end

#unparseable?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


13
14
15
# File 'lib/evilution/ast/source_surgeon.rb', line 13

def unparseable?
  status == :unparseable
end