Class: Factorial::Base
- Inherits:
-
Object
- Object
- Factorial::Base
- Defined in:
- lib/factorial.rb
Instance Attribute Summary collapse
-
#factorial_result ⇒ Object
readonly
Returns the value of attribute factorial_result.
Instance Method Summary collapse
-
#initialize(number) ⇒ Base
constructor
A new instance of Base.
Constructor Details
Instance Attribute Details
#factorial_result ⇒ Object (readonly)
Returns the value of attribute factorial_result.
5 6 7 |
# File 'lib/factorial.rb', line 5 def factorial_result @factorial_result end |