Class: RChoice::Option

Inherits:
Object show all
Includes:
FromHash
Defined in:
lib/rchoice/option.rb

Direct Known Subclasses

ProcOption

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_objObject

Returns the value of attribute base_obj.



4
5
6
# File 'lib/rchoice/option.rb', line 4

def base_obj
  @base_obj
end

Instance Method Details

#execute!(&b) ⇒ Object



6
7
8
# File 'lib/rchoice/option.rb', line 6

def execute!(&b)
  b.call(*execute_args)
end

#to_sObject



9
10
11
# File 'lib/rchoice/option.rb', line 9

def to_s
  base_obj.to_s
end