lib/net/sftp/protocol/01/attributes.rb
# A convenience method for defining methods that expose specific
# attributes. This redefines the standard attr_accessor (an admittedly
# bad practice) because (1) I don't need any "regular" accessors, and
# (2) because rdoc will automatically pick up and note methods defined
# via attr_accessor.
A convenience method for defining methods that expose specific
attributes. This redefines the standard attr_accessor (an admittedly
bad practice) because (1) I don't need any "regular" accessors, and
(2) because rdoc will automatically pick up and note methods defined
via attr_accessor.
A convenience method for defining methods that expose specific attributes . This redefines the standard attr_accessor ( an admittedly bad practice ) because ( 1 ) I don ' t need any " regular " accessors and ( 2 ) because rdoc will automatically pick up and note methods defined via attr_accessor .
def attr_accessor(name) 
        class_eval <<-CODE
          def #{name}
            attributes[:#{name}]
          end
        CODE
        attr_writer(name)
      end
def attr_accessor ( name ) class_eval <<-CODE 
          def  #{ name } 
            attributes[: #{ name } ]
          end
         CODE attr_writer ( name ) end
A convenience method for defining methods that expose specific
attributes.
A convenience method for defining methods that expose specific attributes .
#:nodoc:
name
<not_specific>