Class: Steep::AST::Ignore::IgnoreEnd
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(comment, location) ⇒ IgnoreEnd
constructor
A new instance of IgnoreEnd.
- #line ⇒ Object
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
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
52 53 54 |
# File 'lib/steep/ast/ignore.rb', line 52 def comment @comment end |
#location ⇒ Object (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
#line ⇒ Object
59 60 61 |
# File 'lib/steep/ast/ignore.rb', line 59 def line location.start_line end |