Class: Ast::Merge::Comment::QuotedHashLineParser::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/ast/merge/comment/quoted_hash_line_parser.rb

Overview

Normalized result from parsing a line.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



13
14
15
# File 'lib/ast/merge/comment/quoted_hash_line_parser.rb', line 13

def column
  @column
end

#indentObject

Returns the value of attribute indent

Returns:

  • (Object)

    the current value of indent



13
14
15
# File 'lib/ast/merge/comment/quoted_hash_line_parser.rb', line 13

def indent
  @indent
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



13
14
15
# File 'lib/ast/merge/comment/quoted_hash_line_parser.rb', line 13

def kind
  @kind
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



13
14
15
# File 'lib/ast/merge/comment/quoted_hash_line_parser.rb', line 13

def raw
  @raw
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



13
14
15
# File 'lib/ast/merge/comment/quoted_hash_line_parser.rb', line 13

def text
  @text
end

Instance Method Details

#full_line?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/ast/merge/comment/quoted_hash_line_parser.rb', line 14

def full_line?
  kind == :full_line
end

#inline?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/ast/merge/comment/quoted_hash_line_parser.rb', line 18

def inline?
  kind == :inline
end