Class: Method::Node

Inherits:
Object show all
Defined in:
lib/getsource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_, line_) ⇒ Node

Returns a new instance of Node.



30
31
32
33
# File 'lib/getsource.rb', line 30

def initialize(file_,line_)
  @file = file_
  @line = line_
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



27
28
29
# File 'lib/getsource.rb', line 27

def file
  @file
end

#lineObject (readonly)

Returns the value of attribute line.



28
29
30
# File 'lib/getsource.rb', line 28

def line
  @line
end