Method: PostRunner::NavButtonRow#initialize
- Defined in:
- lib/postrunner/NavButtonRow.rb
#initialize(float = nil) ⇒ NavButtonRow
Create a new NavButtonRow object. be a floating object that floats left or right.
54 55 56 57 58 59 60 61 |
# File 'lib/postrunner/NavButtonRow.rb', line 54 def initialize(float = nil) unless float.nil? || %w( left right ).include?(float) raise ArgumentError "float argument must be nil, 'left' or 'right'" end @float = float @buttons = [] end |