Class: Steep::AST::Ignore::IgnoreStart
- Defined in:
- lib/steep/ast/ignore.rb
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) ⇒ IgnoreStart
constructor
A new instance of IgnoreStart.
- #line ⇒ Object
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
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
39 40 41 |
# File 'lib/steep/ast/ignore.rb', line 39 def comment @comment end |
#location ⇒ Object (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
#line ⇒ Object
46 47 48 |
# File 'lib/steep/ast/ignore.rb', line 46 def line location.start_line end |