Class: Steep::AST::Ignore::IgnoreEnd

Inherits:
Object
  • Object
show all
Defined in:
lib/steep/ast/ignore.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comment, location) ⇒ IgnoreEnd

Returns a new instance of IgnoreEnd.



54
55
56
57
# File 'lib/steep/ast/ignore.rb', line 54

def initialize(comment, location)
  @comment = comment
  @location = location
end

Instance Attribute Details

#commentObject (readonly)

Returns the value of attribute comment.



52
53
54
# File 'lib/steep/ast/ignore.rb', line 52

def comment
  @comment
end

#locationObject (readonly)

Returns the value of attribute location.



52
53
54
# File 'lib/steep/ast/ignore.rb', line 52

def location
  @location
end

Instance Method Details

#lineObject



59
60
61
# File 'lib/steep/ast/ignore.rb', line 59

def line
  location.start_line
end