Class: Mmmm::FileLineMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/mmmm/src_loc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(src_loc, m) ⇒ FileLineMethod

Returns a new instance of FileLineMethod.



5
6
7
8
9
# File 'lib/mmmm/src_loc.rb', line 5

def initialize src_loc, m
  @file = src_loc[0]
  @line = src_loc[1]
  @method = m
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



4
5
6
# File 'lib/mmmm/src_loc.rb', line 4

def file
  @file
end

#lineObject (readonly)

Returns the value of attribute line.



4
5
6
# File 'lib/mmmm/src_loc.rb', line 4

def line
  @line
end

#methodObject (readonly)

Returns the value of attribute method.



4
5
6
# File 'lib/mmmm/src_loc.rb', line 4

def method
  @method
end