Class: Mmmm::ObjectMethods::FileLineMethod
- Inherits:
-
Object
- Object
- Mmmm::ObjectMethods::FileLineMethod
- Defined in:
- lib/mmmm/object_methods.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
-
#initialize(src_loc, m) ⇒ FileLineMethod
constructor
A new instance of FileLineMethod.
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
#file ⇒ Object (readonly)
Returns the value of attribute file.
5 6 7 |
# File 'lib/mmmm/object_methods.rb', line 5 def file @file end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
5 6 7 |
# File 'lib/mmmm/object_methods.rb', line 5 def line @line end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
5 6 7 |
# File 'lib/mmmm/object_methods.rb', line 5 def method @method end |