Sha256: b3ab7c780a5966bcbc62b2671cb53a3faf5ac0745a71c83487655f6dc1dac3e0

Contents?: true

Size: 370 Bytes

Versions: 2

Compression:

Stored size: 370 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'rubygems'
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
require 'babascript'

BabaScript.baba :base => "http://localhost:5000", :space => "test" do
  if Time.now.hour < 12
    puts そろそろ起きたほうがいいのでは?
  else
    puts アイス買ってきてよ("#{rand(10)}本")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
babascript-0.3.1 samples/sample.rb
babascript-0.3.0 samples/sample.rb