Class: FlogBuilder::ScannedMethod
- Inherits:
-
Object
- Object
- FlogBuilder::ScannedMethod
- Defined in:
- lib/flog_builder.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#operators ⇒ Object
Returns the value of attribute operators.
-
#score ⇒ Object
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(name, score, operators = []) ⇒ ScannedMethod
constructor
A new instance of ScannedMethod.
Constructor Details
#initialize(name, score, operators = []) ⇒ ScannedMethod
Returns a new instance of ScannedMethod.
55 56 57 58 59 |
# File 'lib/flog_builder.rb', line 55 def initialize(name, score, operators = []) @name = name @score = score.to_f @operators = operators end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
53 54 55 |
# File 'lib/flog_builder.rb', line 53 def name @name end |
#operators ⇒ Object
Returns the value of attribute operators.
53 54 55 |
# File 'lib/flog_builder.rb', line 53 def operators @operators end |
#score ⇒ Object
Returns the value of attribute score.
53 54 55 |
# File 'lib/flog_builder.rb', line 53 def score @score end |