Class: AutoC::Module::Builder
- Inherits:
-
Array
- Object
- Array
- AutoC::Module::Builder
- Defined in:
- lib/autoc/module.rb
Instance Attribute Summary collapse
-
#complexity ⇒ Object
readonly
Returns the value of attribute complexity.
Instance Method Summary collapse
- #<<(obj) ⇒ Object
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize ⇒ Builder
Returns a new instance of Builder.
31 32 33 34 |
# File 'lib/autoc/module.rb', line 31 def initialize @complexity = 0 super end |
Instance Attribute Details
#complexity ⇒ Object (readonly)
Returns the value of attribute complexity.
29 30 31 |
# File 'lib/autoc/module.rb', line 29 def complexity @complexity end |
Instance Method Details
#<<(obj) ⇒ Object
36 37 38 39 |
# File 'lib/autoc/module.rb', line 36 def <<(obj) @complexity += (s = obj.to_s).size super(s) end |