class Lebowski::Foundation::Views::Support::SimpleItem
Attributes
title[R]
value[R]
Public Class Methods
new(parent, title, value)
click to toggle source
# File lib/lebowski/foundation/views/support/simple_item_array.rb, line 15 def initialize(parent, title, value) @title = title @value = value @parent = parent end
Public Instance Methods
click()
click to toggle source
# File lib/lebowski/foundation/views/support/simple_item_array.rb, line 21 def click() @parent.click @title end
select()
click to toggle source
# File lib/lebowski/foundation/views/support/simple_item_array.rb, line 29 def select() click if not selected? end
selected?()
click to toggle source
# File lib/lebowski/foundation/views/support/simple_item_array.rb, line 25 def selected?() return @parent.selected?(@title) end
to_s()
click to toggle source
# File lib/lebowski/foundation/views/support/simple_item_array.rb, line 33 def to_s() return "SimpleItem<title: #{title}, value: #{value}>" end