Method: Fracture#initialize
- Defined in:
- lib/fracture/fracture.rb
#initialize(label, items, is_text, is_path = false) ⇒ Fracture
Returns a new instance of Fracture.
6 7 8 9 10 11 |
# File 'lib/fracture/fracture.rb', line 6 def initialize label, items, is_text, is_path=false self.label = label self.items = Array(items) self.is_text = is_text self.is_path = is_path end |