Class: Mmmm::ObjectMethods::FileLineMethod

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(src_loc, m) ⇒ FileLineMethod

Returns a new instance of FileLineMethod.



6
7
8
9
10
# File 'lib/mmmm/object_methods.rb', line 6

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.



5
6
7
# File 'lib/mmmm/object_methods.rb', line 5

def file
  @file
end

#lineObject (readonly)

Returns the value of attribute line.



5
6
7
# File 'lib/mmmm/object_methods.rb', line 5

def line
  @line
end

#methodObject (readonly)

Returns the value of attribute method.



5
6
7
# File 'lib/mmmm/object_methods.rb', line 5

def method
  @method
end