ruby/trema/set-eth-addr.rb in trema-0.4.6 vs ruby/trema/set-eth-addr.rb in trema-0.4.7

- old
+ new

@@ -14,12 +14,12 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -require "trema/action" -require "trema/mac" +require 'trema/action' +require 'trema/mac' module Trema # # @abstract The base class of {SetEthSrcAddr} and {SetEthDstAddr} action. @@ -33,16 +33,16 @@ # # @private # - def initialize mac_address - @mac_address = Mac.new( mac_address ) + def initialize(mac_address) + @mac_address = Mac.new(mac_address) end def to_s - "#{ self.class.to_s }: mac_address=#{ @mac_address }" + "#{ self.class }: mac_address=#{ @mac_address }" end end end