ruby/trema/dsl/custom-switch.rb in trema-0.4.6 vs ruby/trema/dsl/custom-switch.rb in trema-0.4.7

- old
+ new

@@ -16,21 +16,21 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -require "trema/dsl/switch" +require 'trema/dsl/switch' module Trema module DSL class CustomSwitch < Switch - def initialize name = nil + def initialize(name = nil) super name end - def path filepath + def path(filepath) @path = filepath end end end end