lib/apple-news/behaviors/base.rb in apple-news-0.1.1 vs lib/apple-news/behaviors/base.rb in apple-news-0.2.0
- old
+ new
@@ -2,10 +2,10 @@
module Behavior
class Base
include Properties
def self.type(val = nil)
- val.nil? ? _required_property_map[:type] : required_property(:type, val)
+ val.nil? ? _required_property_map[:type][:default] : required_property(:type, val)
end
def type
self.class.type
end