Class: FunWith::Configurations::TryResult

Inherits:
Object
  • Object
show all
Defined in:
lib/fun_with/configurations/try_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject

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

Returns:

  • (Boolean)


10
11
12
# File 'lib/fun_with/configurations/try_result.rb', line 10

def success?
  @success
end