Sha256: 2e67e2a06ec5de6c7d377cfc67432c50c98d860eed05e82d7344bce66ee29b22
Contents?: true
Size: 549 Bytes
Versions: 4
Compression:
Stored size: 549 Bytes
Contents
require 'rumx' require './my_embedded_bean' class MyBean include Rumx::Bean bean_attr_accessor :greeting, :string, 'My greeting' #old bean_attr_embed :embedded, 'My embedded bean' bean_attr_reader :embedded, :bean, 'My embedded bean' bean_operation :my_operation, :string, 'My operation', [ [ :arg_int, :integer, 'An int argument' ] ] def initialize @greeting = 'Hello, Rumx' @embedded = MyEmbeddedBean.new end def my_operation(arg_int) "arg_int value=#{arg_int}" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rumx-0.2.3 | examples/embedded/my_bean.rb |
rumx-0.2.2 | examples/embedded/my_bean.rb |
rumx-0.1.5 | examples/embedded/my_bean.rb |
rumx-0.1.4 | examples/embedded/my_bean.rb |