ruby/trema/dsl/rswitch.rb in trema-0.4.6 vs ruby/trema/dsl/rswitch.rb in trema-0.4.7
- old
+ new
@@ -16,24 +16,24 @@
# 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 Rswitch < Switch
attr_reader :path
- def initialize name = nil
+ def initialize(name = nil)
super name
end
- def file path
+ def file(path)
@path = path
end
end
end
end