class Asperalm::Cli::AttrAccessor
option is retrieved from another object using accessor
Public Class Methods
new(object,attr_symb)
click to toggle source
attr_accessor :object attr_accessor :attr_symb
# File lib/asperalm/cli/manager.rb, line 25 def initialize(object,attr_symb) @object=object @attr_symb=attr_symb end
Public Instance Methods
value()
click to toggle source
# File lib/asperalm/cli/manager.rb, line 30 def value @object.send(@attr_symb.to_s) end
value=(val)
click to toggle source
# File lib/asperalm/cli/manager.rb, line 34 def value=(val) @object.send(@attr_symb.to_s+'=',val) end