Class: TVML::Element::Button

Inherits:
Base
  • Object
show all
Defined in:
lib/TVML/element/button.rb

Class Method Summary collapse

Methods inherited from Base

#build, build, element, inherited, #initialize_builder, #marshal_elements, node_name, #to_tvml

Class Method Details

.from_value(str) ⇒ Object



6
7
8
9
10
# File 'lib/TVML/element/button.rb', line 6

def self.from_value(str)
  btn = new
  btn.text = str
  btn
end