Class: FunWith::Configurations::TryResult
- Inherits:
-
Object
- Object
- FunWith::Configurations::TryResult
- Defined in:
- lib/fun_with/configurations/try_result.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config, success) ⇒ TryResult
constructor
A new instance of TryResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(config, success) ⇒ TryResult
Returns a new instance of TryResult.
5 6 7 8 |
# File 'lib/fun_with/configurations/try_result.rb', line 5 def initialize( config, success ) @config = config @success = success end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
4 5 6 |
# File 'lib/fun_with/configurations/try_result.rb', line 4 def config @config end |
Instance Method Details
#success? ⇒ Boolean
10 11 12 |
# File 'lib/fun_with/configurations/try_result.rb', line 10 def success? @success end |