Class: Steep::AST::Ignore::IgnoreStart

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) ⇒ IgnoreStart

Returns a new instance of IgnoreStart.



41
42
43
44
# File 'lib/steep/ast/ignore.rb', line 41

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

Instance Attribute Details

#commentObject (readonly)

Returns the value of attribute comment.



39
40
41
# File 'lib/steep/ast/ignore.rb', line 39

def comment
  @comment
end

#locationObject (readonly)

Returns the value of attribute location.



39
40
41
# File 'lib/steep/ast/ignore.rb', line 39

def location
  @location
end

Instance Method Details

#lineObject



46
47
48
# File 'lib/steep/ast/ignore.rb', line 46

def line
  location.start_line
end