lib/shirinji/bean.rb in shirinji-0.0.3 vs lib/shirinji/bean.rb in shirinji-0.0.4

- old
+ new

@@ -2,10 +2,11 @@ module Shirinji class Bean attr_reader :name, :class_name, :value, :access, :attributes, :construct + # rubocop:disable Metrics/ParameterLists def initialize( name, class_name: nil, value: nil, access:, construct: true, &block ) check_params!(class_name, value) @@ -16,9 +17,10 @@ @attributes = {} @construct = construct instance_eval(&block) if block end + # rubocop:enable Metrics/ParameterLists def attr(name, ref:) attributes[name] = Attribute.new(name, ref) end