Sha256: 897106e05b414fea624faeaa50c7b526ef997876e2a5e8d002ca46ea414df68b

Contents?: true

Size: 348 Bytes

Versions: 5

Compression:

Stored size: 348 Bytes

Contents

class TestWidget1 < Rtml::Widget
  affects :document # a model
  entry_point :start1, :hash_entry_1, :hash_entry_2
  entry_point :missing_widget_entry_point

  shared :hash_with_value => Hash

  def hash_entry_1
    hash_with_value[:value] = 1
  end

  def hash_entry_2
    hash_with_value[:value] = 2 unless hash_with_value[:value] == 1
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rtml-2.0.4 spec/support/lib/rtml/widgets/test_widget1.rb
rtml-2.0.3 spec/support/lib/rtml/widgets/test_widget1.rb
rtml-2.0.2 spec/support/lib/rtml/widgets/test_widget1.rb
rtml-2.0.1 spec/support/lib/rtml/widgets/test_widget1.rb
rtml-2.0.0.alpha.1 spec/support/lib/rtml/widgets/test_widget1.rb