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, inherited) ⇒ FileLineMethod



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

def initialize src_loc, m, inherited
  @file = src_loc[0]
  @line = src_loc[1]
  @method = m
  @inherited = inherited
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

Instance Method Details

#inherited?Boolean



13
14
15
# File 'lib/mmmm/object_methods.rb', line 13

def inherited?
  @inherited
end